USB: usb-stor: realtek_cr: Fix compile error
authorWei WANG <wei_wang@realsil.com.cn>
Sat, 27 Apr 2013 02:49:13 +0000 (10:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 May 2013 00:28:27 +0000 (17:28 -0700)
commit1c9e55cda44d770ce4e519f9672a4f11e87a2160
tree249716d28386c64643ad587306e7b4e57a6fa0ed
parent7c8bfed7aaeba690de30835fe89882e1047a55fd
USB: usb-stor: realtek_cr: Fix compile error

To fix the compile error when CONFIG_PM_RUNTIME is not enabled,
move the declaration of us out of CONFIG_REALTEK_AUTOPM macro in rts51x_chip.

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'

Signed-off-by: Wei WANG <wei_wang@realsil.com.cn>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/storage/realtek_cr.c