usb: storage: Convert US_DEBUGP to usb_stor_dbg
cc'ing lkml:
Quoted 19 lines · David Rientjes
Quoted 16 lines · Joe Perches
(quoted diff) +4
-2@@ -966,11 +934,13 @@ static int realtek_cr_autosuspend_setup(struct us_data *us) static void realtek_cr_destructor(void *extra) { struct rts51x_chip *chip = (struct rts51x_chip *)extra; - - US_DEBUGP("%s: <---\n", __func__); + struct us_data *us; if (!chip) return; + + us = chip->us; + #ifdef CONFIG_REALTEK_AUTOPM if (ss_en) { del_timer(&chip->rts51x_suspend_timer);
Quoted 6 lines
Quoted 1 line
From linux-next:
drivers/usb/storage/realtek_cr.c: In function 'realtek_cr_destructor':drivers/usb/storage/realtek_cr.c:942:11: error: 'structrts51x_chip' has no member named 'us'
chip->ushere is only defined whenCONFIG_REALTEK_AUTOPMis enabled.
Thanks.
I'll fix it, but it'll likely be a couple of weeks until I can.