]> git.karo-electronics.de Git - linux-beck.git/commitdiff
usb_storage: realtek_cr patch: fix sparse warning
authorwwang <wei_wang@realsil.com.cn>
Tue, 15 Feb 2011 01:38:31 +0000 (09:38 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 18:53:26 +0000 (10:53 -0800)
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>
drivers/usb/storage/realtek_cr.c

index c2bebb3731d34ec437b95f854a32ce3c0cfea1d0..4f6b25fc6bdd5a23e02ac4d9bb901d13484692d1 100644 (file)
@@ -141,7 +141,7 @@ static int init_realtek_cr(struct us_data *us);
        .driver_info = (flags)|(USB_US_TYPE_STOR<<24)\
 }
 
-struct usb_device_id realtek_cr_ids[] = {
+static struct usb_device_id realtek_cr_ids[] = {
 #      include "unusual_realtek.h"
        { }             /* Terminating entry */
 };
@@ -570,7 +570,7 @@ static void realtek_cr_destructor(void *extra)
 }
 
 #ifdef CONFIG_PM
-void realtek_pm_hook(struct us_data *us, int pm_state)
+static void realtek_pm_hook(struct us_data *us, int pm_state)
 {
        if (pm_state == US_SUSPEND)
                (void)config_autodelink_before_power_down(us);