From: Paul Walmsley Date: Thu, 10 May 2012 22:27:23 +0000 (-0600) Subject: ARM: OMAP1: USB: fix ocpi_enable compile problem on non-1610 builds X-Git-Tag: omap-fixes-for-cleanup-for-v3.5~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=121e1a73a6246df206e779cc163ce95fbd300877;p=pandora-kernel.git ARM: OMAP1: USB: fix ocpi_enable compile problem on non-1610 builds Janusz Krzysztofik reported the following build break on OMAP1 builds that don't include CONFIG_ARCH_OMAP16XX: LD .tmp_vmlinux1 arch/arm/mach-omap1/built-in.o: In function `omap1_usb_init': lcd_dma.c:(.init.text+0x1420): undefined reference to `ocpi_enable' make: *** [.tmp_vmlinux1] Error 1 This was caused by commit d3645d39ad0ed9f09535065676ea0ba114f93cdf ("ARM: OMAP1: OHCI: use platform_data fn ptr to enable OCPI bus"). Fix by declaring an empty ocpi_enable() on non-16XX builds, which should work until the OCPI code is moved out to drivers/. Cc: Janusz Krzysztofik Signed-off-by: Paul Walmsley Signed-off-by: Tony Lindgren --- Reading git-diff-tree failed