CHROMIUM: usb: dwc: Fix ARM usb_phy init parameter warning
authorSimon Que <sque@chromium.org>
Thu, 31 Jan 2013 01:52:45 +0000 (17:52 -0800)
committerChromeBot <chrome-bot@google.com>
Thu, 31 Jan 2013 19:08:58 +0000 (11:08 -0800)
commitf319c8924aefd6baa904ce7c81d5406565830e93
tree5d04e316aa7b35eebb69ef5a83c368eb68759cf5
parent1e7196f815c542e09738b7d79ef1eed753c5d4b7
CHROMIUM: usb: dwc: Fix ARM usb_phy init parameter warning

Adding the param "bool ext_clk" to phy_init() results in some warnings:

arch/arm/mach-exynos/mach-exynos5-dt.c:535:2: error: initialization from
incompatible pointer type [-Werror]
arch/arm/mach-exynos/mach-exynos5-dt.c:540:2: error: initialization from
incompatible pointer type [-Werror]

Instead of updating this function pointer to have the extra variable,
add a new function to set "ext_clk" as a static variable in
setup-usb-phy.c

BUG=chromium-os:5542
TEST=emerge-daisy chromeos-kernel, make sure warning is gone

Change-Id: Ic2c38acd945083b0509dafe9dadf12935868991d
Signed-off-by: Simon Que <sque@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/42367
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
arch/arm/mach-exynos/mach-exynos5-dt.c
arch/arm/mach-exynos/setup-usb-phy.c
arch/arm/plat-samsung/include/plat/ehci.h
arch/arm/plat-samsung/include/plat/usb-phy.h
drivers/usb/dwc3/dwc3-exynos.c
include/linux/platform_data/dwc3-exynos.h