Skip to content

Commit

Permalink
[PATCH] USB: sl811_cs needs platform_device conversion too
Browse files Browse the repository at this point in the history
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]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
David Brownell authored and gregkh committed Feb 14, 2006
1 parent c6c2772 commit a0c53f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/usb/host/sl811_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit a0c53f1

Please sign in to comment.