Driver can't work without it; please merge asap.

- Dave
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 <[EMAIL PROTECTED]>

Index: lubbock/drivers/usb/host/sl811_cs.c
===================================================================
--- lubbock.orig/drivers/usb/host/sl811_cs.c	2006-02-02 14:04:39.000000000 -0800
+++ lubbock/drivers/usb/host/sl811_cs.c	2006-02-06 13:25:34.000000000 -0800
@@ -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 *
 	 * 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);
 }
 

Reply via email to