diff options
| author | Richard Gooch <rgooch@atnf.csiro.au> | 2002-07-25 17:02:09 +0000 |
|---|---|---|
| committer | Richard Gooch <rgooch@atnf.csiro.au> | 2002-07-25 17:02:09 +0000 |
| commit | 5dcb5df17dff30d2905afccdedec1561e53dd7d4 (patch) | |
| tree | e23ef687f5f8e9b1d9febddf612adf33d27ccc95 /drivers/usb/input | |
| parent | fe65ee28fec8ef713a1e7e83b03a0a12d8938fe3 (diff) | |
do_mounts.c, block_dev.c, hiddev.c, md.c:
Switched from devfs_find_handle() to devfs_get_handle()
Many files:
Switched from devfs_find_handle() to devfs_find_and_unregister()
base.c:
Created <devfs_find_and_unregister>.
Diffstat (limited to 'drivers/usb/input')
| -rw-r--r-- | drivers/usb/input/hiddev.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/usb/input/hiddev.c b/drivers/usb/input/hiddev.c index 93dcc5184758..c750b27252ec 100644 --- a/drivers/usb/input/hiddev.c +++ b/drivers/usb/input/hiddev.c @@ -765,8 +765,11 @@ static /* const */ struct usb_driver hiddev_driver = { int __init hiddev_init(void) { - hiddev_devfs_handle = - devfs_mk_dir(devfs_find_handle(NULL, "usb", 0, 0, 0, 0), "hid", NULL); + devfs_handle_t de; + + de = devfs_get_handle(NULL, "usb", 0, 0, 0, 0); + hiddev_devfs_handle = devfs_mk_dir(de, "hid", NULL); + devfs_put(de); usb_register(&hiddev_driver); return 0; } |
