aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/storage
diff options
context:
space:
mode:
authorwwang <wei_wang@realsil.com.cn>2011-02-14 20:38:31 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-17 13:53:26 -0500
commit9812f748a149796cc0299757c3ebf49f0915dc3c (patch)
tree05fe69fbbfb317e1843126b9750b37a272ffe432 /drivers/usb/storage
parentb9f2e9a122a4d51dc13e2e9571034cb2d29dfe44 (diff)
usb_storage: realtek_cr patch: fix sparse warning
Fix some sparse warning for realtek_cr patch Signed-off-by: wwang <wei_wang@realsil.com.cn> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/storage')
-rw-r--r--drivers/usb/storage/realtek_cr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/storage/realtek_cr.c b/drivers/usb/storage/realtek_cr.c
index c2bebb3731d3..4f6b25fc6bdd 100644
--- a/drivers/usb/storage/realtek_cr.c
+++ b/drivers/usb/storage/realtek_cr.c
@@ -141,7 +141,7 @@ static int init_realtek_cr(struct us_data *us);
141 .driver_info = (flags)|(USB_US_TYPE_STOR<<24)\ 141 .driver_info = (flags)|(USB_US_TYPE_STOR<<24)\
142} 142}
143 143
144struct usb_device_id realtek_cr_ids[] = { 144static struct usb_device_id realtek_cr_ids[] = {
145# include "unusual_realtek.h" 145# include "unusual_realtek.h"
146 { } /* Terminating entry */ 146 { } /* Terminating entry */
147}; 147};
@@ -570,7 +570,7 @@ static void realtek_cr_destructor(void *extra)
570} 570}
571 571
572#ifdef CONFIG_PM 572#ifdef CONFIG_PM
573void realtek_pm_hook(struct us_data *us, int pm_state) 573static void realtek_pm_hook(struct us_data *us, int pm_state)
574{ 574{
575 if (pm_state == US_SUSPEND) 575 if (pm_state == US_SUSPEND)
576 (void)config_autodelink_before_power_down(us); 576 (void)config_autodelink_before_power_down(us);