diff options
author | Felipe Balbi <balbi@ti.com> | 2012-01-26 12:40:23 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-01-31 14:18:26 +0200 |
commit | e9e8c85e69310141d78daaecd6a56138700ac317 (patch) | |
tree | b778093675b5e115fc3289385ea323225fe66887 /drivers/usb/musb/musb_debugfs.c | |
parent | f557978745bbea2e7305588d33aac60f4dd42447 (diff) | |
download | linux-stable-e9e8c85e69310141d78daaecd6a56138700ac317.tar.gz linux-stable-e9e8c85e69310141d78daaecd6a56138700ac317.tar.bz2 linux-stable-e9e8c85e69310141d78daaecd6a56138700ac317.zip |
usb: musb: make modules behave better
There's really no point in doing all that
initcall trickery when we can safely let
udev handle module probing for us.
Remove all of that trickery, by moving everybody
to module_init() and making proper use of
platform_device_register() rather than
platform_device_probe().
Tested-by: Rajashekhara, Sudhakar <sudhakar.raj@ti.com>
Tested-by: Tasslehoff Kjappfot <tasskjapp@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb/musb_debugfs.c')
-rw-r--r-- | drivers/usb/musb/musb_debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb/musb_debugfs.c b/drivers/usb/musb/musb_debugfs.c index 13d9af9bf920..219d0fba584e 100644 --- a/drivers/usb/musb/musb_debugfs.c +++ b/drivers/usb/musb/musb_debugfs.c @@ -235,7 +235,7 @@ static const struct file_operations musb_test_mode_fops = { .release = single_release, }; -int __init musb_init_debugfs(struct musb *musb) +int __devinit musb_init_debugfs(struct musb *musb) { struct dentry *root; struct dentry *file; |