usb: gadget: s3c-hsudc: remove platform header dependency
authorArnd Bergmann <arnd@arndb.de>
Thu, 6 Aug 2020 18:20:26 +0000 (20:20 +0200)
committerKrzysztof Kozlowski <krzk@kernel.org>
Wed, 19 Aug 2020 18:58:27 +0000 (20:58 +0200)
commit5f745424761a2a49762625e8616417a8e7694228
tree1aac89c1a1244cee21c6788f545e3e7105c2420a
parent188db4435ac64f0918def7ba0593d408700ecc4b
usb: gadget: s3c-hsudc: remove platform header dependency

There is no real phy driver, so s3c-hsudc just pokes the registers
itself. Improve this a little by making it a platform data callback
like we do for gpios.

There is only one board using this driver, and it's unlikely
that another would be added, so this is a minimal workaround.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20200806182059.2431-9-krzk@kernel.org
[krzk: Include regs-s3c2443-clock.h in ifdef to fixup build on s3c6400]
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
arch/arm/mach-s3c24xx/include/mach/regs-s3c2443-clock.h
arch/arm/plat-samsung/devs.c
drivers/usb/gadget/udc/s3c-hsudc.c
include/linux/platform_data/s3c-hsudc.h