USB: host: use to_platform_device
authorGeliang Tang <geliangtang@163.com>
Wed, 23 Dec 2015 13:26:52 +0000 (21:26 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Jan 2016 05:00:33 +0000 (21:00 -0800)
commit20db5513b4085d4beb78e7129cf7e56fe4ddafde
treed77929e8be4add3032a33a75254cf06eacd3019e
parent6ae706aeaf42cd2fe6e541c72af6e2c0befe057c
USB: host: use to_platform_device

Use to_platform_device() instead of open-coding it.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-platform.c
drivers/usb/host/ehci-st.c
drivers/usb/host/ohci-platform.c
drivers/usb/host/ohci-st.c