Skip to content

Commit

Permalink
USB: at91_udc, fix more modpost bogosity (rename driver struct)
Browse files Browse the repository at this point in the history
Rename the driver struct used with at91_udc to prevent yet another
bogus warning from "modpost".

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
David Brownell authored and Greg Kroah-Hartman committed Mar 10, 2007
1 parent a967e12 commit dee497d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/usb/gadget/at91_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1835,7 +1835,7 @@ static int at91udc_resume(struct platform_device *pdev)
#define at91udc_resume NULL
#endif

static struct platform_driver at91_udc = {
static struct platform_driver at91_udc_driver = {
.remove = __exit_p(at91udc_remove),
.shutdown = at91udc_shutdown,
.suspend = at91udc_suspend,
Expand All @@ -1848,13 +1848,13 @@ static struct platform_driver at91_udc = {

static int __init udc_init_module(void)
{
return platform_driver_probe(&at91_udc, at91udc_probe);
return platform_driver_probe(&at91_udc_driver, at91udc_probe);
}
module_init(udc_init_module);

static void __exit udc_exit_module(void)
{
platform_driver_unregister(&at91_udc);
platform_driver_unregister(&at91_udc_driver);
}
module_exit(udc_exit_module);

Expand Down

0 comments on commit dee497d

Please sign in to comment.