Skip to content

Commit

Permalink
usb_storage: realtek_cr patch: fix sparse warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
wwang authored and Greg Kroah-Hartman committed Feb 17, 2011
1 parent b9f2e9a commit 9812f74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/usb/storage/realtek_cr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
};
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 9812f74

Please sign in to comment.