| .. | .. |
|---|
| 44 | 44 | * memstick_debug_get_tpc_name - debug helper that returns string for |
|---|
| 45 | 45 | * a TPC number |
|---|
| 46 | 46 | */ |
|---|
| 47 | | -const char *memstick_debug_get_tpc_name(int tpc) |
|---|
| 47 | +static __maybe_unused const char *memstick_debug_get_tpc_name(int tpc) |
|---|
| 48 | 48 | { |
|---|
| 49 | 49 | return tpc_names[tpc-1]; |
|---|
| 50 | 50 | } |
|---|
| 51 | | -EXPORT_SYMBOL(memstick_debug_get_tpc_name); |
|---|
| 52 | | - |
|---|
| 53 | 51 | |
|---|
| 54 | 52 | /* Read a register*/ |
|---|
| 55 | 53 | static inline u32 r592_read_reg(struct r592_device *dev, int address) |
|---|
| .. | .. |
|---|
| 828 | 826 | /* Stop the processing thread. |
|---|
| 829 | 827 | That ensures that we won't take any more requests */ |
|---|
| 830 | 828 | kthread_stop(dev->io_thread); |
|---|
| 831 | | - |
|---|
| 829 | + del_timer_sync(&dev->detect_timer); |
|---|
| 832 | 830 | r592_enable_device(dev, false); |
|---|
| 833 | 831 | |
|---|
| 834 | 832 | while (!error && dev->req) { |
|---|