arm: tegra: ardbeg: Conditionally compile tegra_xusb_init
Vivek Aseeja [Tue, 9 Jul 2013 00:03:11 +0000 (17:03 -0700)]
xusb.c should always compile independent of CONFIG_USB_SUPPORT
tegra_xusb_init should be an empty function when CONFIG_TEGRA_XUSB_PLATFORM is not true

Signed-off-by: Vivek Aseeja <vaseeja@nvidia.com>
Change-Id: Iec3f4990bb42f9309f04ddaa17b9fd9141fab098
Reviewed-on: http://git-master/r/246365
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Chao Xu <cxu@nvidia.com>

arch/arm/mach-tegra/Makefile
arch/arm/mach-tegra/xusb.c

index bea29f6..bb88d39 100644 (file)
@@ -80,7 +80,7 @@ AFLAGS_sleep.o :=-Wa,-march=armv7-a$(plus_sec)
 obj-y                                   += tegra_fuse.o
 obj-y                                   += kfuse.o
 obj-y                                   += csi.o
-obj-$(CONFIG_USB_SUPPORT)               += xusb.o
+obj-y                                   += xusb.o
 
 obj-y                                   += powergate.o
 obj-y                                   += powergate-ops-txx.o
index d3f8d2e..5562428 100644 (file)
@@ -21,7 +21,7 @@
 #include "devices.h"
 #include "fuse.h"
 
-#if defined(CONFIG_ARCH_TEGRA_11x_SOC) || defined(CONFIG_ARCH_TEGRA_12x_SOC)
+#ifdef CONFIG_TEGRA_XUSB_PLATFORM
 static struct tegra_xusb_platform_data tegra_xusb_plat_data = {};
 
 static void tegra_xusb_read_usb_calib(void)