]> err.no Git - linux-2.6/commitdiff
[PATCH] USB: sl811_cs needs platform_device conversion too
authorDavid Brownell <david-b@pacbell.net>
Mon, 6 Feb 2006 20:15:15 +0000 (12:15 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 14 Feb 2006 05:33:39 +0000 (21:33 -0800)
The switchover to "platform_driver" from "device_driver" missed
one rather essential usage, which broke the sl811_cs driver ...
this resolves the omission.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/sl811_cs.c

index 466384d7c79fa7a9c2785af8361fcc3fe4100cf3..134d2000128a557778f604cc3cba78130cc272db 100644 (file)
@@ -101,7 +101,7 @@ static struct resource resources[] = {
        },
 };
 
-extern struct device_driver sl811h_driver;
+extern struct platform_driver sl811h_driver;
 
 static struct platform_device platform_dev = {
        .id                     = -1,
@@ -132,7 +132,7 @@ static int sl811_hc_init(struct device *parent, ioaddr_t base_addr, int irq)
         * initialized already because of the link order dependency created
         * by referencing "sl811h_driver".
         */
-       platform_dev.name = sl811h_driver.name;
+       platform_dev.name = sl811h_driver.driver.name;
        return platform_device_register(&platform_dev);
 }