lkml.org 
[lkml]   [2013]   [Apr]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH V2] usb: storage: Convert US_DEBUGP to usb_stor_dbg
On Fri, 19 Apr 2013, Joe Perches wrote:

> @@ -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);

From linux-next:

drivers/usb/storage/realtek_cr.c: In function 'realtek_cr_destructor':
drivers/usb/storage/realtek_cr.c:942:11: error: 'struct rts51x_chip' has no member named 'us'

chip->us here is only defined when CONFIG_REALTEK_AUTOPM is enabled.


\
 
 \ /
  Last update: 2013-04-22 22:21    [W:0.049 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site