hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/memstick/host/r592.c
....@@ -44,12 +44,10 @@
4444 * memstick_debug_get_tpc_name - debug helper that returns string for
4545 * a TPC number
4646 */
47
-const char *memstick_debug_get_tpc_name(int tpc)
47
+static __maybe_unused const char *memstick_debug_get_tpc_name(int tpc)
4848 {
4949 return tpc_names[tpc-1];
5050 }
51
-EXPORT_SYMBOL(memstick_debug_get_tpc_name);
52
-
5351
5452 /* Read a register*/
5553 static inline u32 r592_read_reg(struct r592_device *dev, int address)
....@@ -828,7 +826,7 @@
828826 /* Stop the processing thread.
829827 That ensures that we won't take any more requests */
830828 kthread_stop(dev->io_thread);
831
-
829
+ del_timer_sync(&dev->detect_timer);
832830 r592_enable_device(dev, false);
833831
834832 while (!error && dev->req) {