提交 a0c53f1d 编写于 作者: D David Brownell 提交者: Greg Kroah-Hartman

[PATCH] USB: sl811_cs needs platform_device conversion too

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: NDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 c6c27721
...@@ -101,7 +101,7 @@ static struct resource resources[] = { ...@@ -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 = { static struct platform_device platform_dev = {
.id = -1, .id = -1,
...@@ -132,7 +132,7 @@ static int sl811_hc_init(struct device *parent, ioaddr_t base_addr, int irq) ...@@ -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 * initialized already because of the link order dependency created
* by referencing "sl811h_driver". * by referencing "sl811h_driver".
*/ */
platform_dev.name = sl811h_driver.name; platform_dev.name = sl811h_driver.driver.name;
return platform_device_register(&platform_dev); return platform_device_register(&platform_dev);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册