usb: host: sl811: Switch to use platform_get_mem_or_io()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 9 Dec 2020 20:36:40 +0000 (22:36 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Dec 2020 15:31:46 +0000 (16:31 +0100)
commitebee0cde1960a41e40840eaa8fe0185aa20e3eb5
tree69b2344fc9e5d626075a4e84f77746b4a1f9e238
parentfeaba5932b6f4bfc875c874a3b7a28c7f05f5a77
usb: host: sl811: Switch to use platform_get_mem_or_io()

Switch to use new platform_get_mem_or_io() instead of home grown analogue.
Note, the code has been moved upper in the function to allow farther cleanups,
such as resource sanity check.

Cc: linux-usb@vger.kernel.org
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20201209203642.27648-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/sl811-hcd.c