diff options
author | Geliang Tang <geliangtang@163.com> | 2015-12-23 21:26:50 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-01-24 21:00:33 -0800 |
commit | 69ab55d7be6c3d69fa2e38f2a2bed4e91b9edf8d (patch) | |
tree | ff533014371e8692fe7a973194de09f8805ba0d2 /drivers/usb/core/devio.c | |
parent | aa742683bbea9f2faa28ec2f61745abf2ad86a9d (diff) | |
download | linux-69ab55d7be6c3d69fa2e38f2a2bed4e91b9edf8d.tar.gz linux-69ab55d7be6c3d69fa2e38f2a2bed4e91b9edf8d.tar.bz2 linux-69ab55d7be6c3d69fa2e38f2a2bed4e91b9edf8d.zip |
USB: core, devio: use to_usb_device
Use to_usb_device() instead of open-coding it.
Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core/devio.c')
-rw-r--r-- | drivers/usb/core/devio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c index 054eb534c495..13a4b9f48739 100644 --- a/drivers/usb/core/devio.c +++ b/drivers/usb/core/devio.c @@ -848,7 +848,7 @@ static struct usb_device *usbdev_lookup_by_devt(dev_t devt) (void *) (unsigned long) devt, match_devt); if (!dev) return NULL; - return container_of(dev, struct usb_device, dev); + return to_usb_device(dev); } /* |