From: wwang Date: Tue, 15 Feb 2011 01:38:31 +0000 (+0800) Subject: usb_storage: realtek_cr patch: fix sparse warning X-Git-Tag: MMI-PSA29.97-13-9~20524^2~130 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9812f748a149796cc0299757c3ebf49f0915dc3c;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git usb_storage: realtek_cr patch: fix sparse warning Fix some sparse warning for realtek_cr patch Signed-off-by: wwang Signed-off-by: Greg Kroah-Hartman --- 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); .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);