]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: OMAP2+: Fix MUSB ifdefs for platform init code
authorTony Lindgren <tony@atomide.com>
Wed, 20 Jun 2012 14:18:15 +0000 (07:18 -0700)
committerTony Lindgren <tony@atomide.com>
Wed, 20 Jun 2012 14:18:15 +0000 (07:18 -0700)
commit8a173a5e00b037264c9c7eefeeb301e2455d1582
tree50b43175441704b6edaa96bca3fe434a891d3f39
parentbdf4fdb7039ded51d12494acc2f7784e940b8b0d
ARM: OMAP2+: Fix MUSB ifdefs for platform init code

Commit 1ccce7d8 (usb: musb: drop a gigantic amount of ifdeferry)
got rid of a bunch of ifdefs in the MUSB code. Looks like the
platform init code is still using these dropped defines though,
which in many cases results the board defaulting always to host
mode.

Currently the situation is that USB_MUSB_HDRC is the main
Kconfig option with additional USB_GADGET_MUSB_HDRC so only
these two should be used to select between host and OTG mode.

Fix the situation for omaps. The following users should fix the
platform init code in a similar way:

Dropped Kconfig option          Current users

USB_MUSB_OTG                    blackfin, davinci, not in Kconfigs
USB_MUSB_PERIPHERAL             davinci, not in Kconfigs
USB_MUSB_HOST                   davinci, not in Kconfigs
USB_MUSB_HDRC_HCD               blackfin, not in Kconfigs
USB_MUSB_OTG                    blackfin, not in Kconfigs

Cc: Mike Frysinger <vapier@gentoo.org>
Cc: Sekhar Nori <nsekhar@ti.com>
Cc: linux-usb@vger.kernel.org
Cc: Felipe Balbi <balbi@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/board-n8x0.c
arch/arm/mach-omap2/omap_phy_internal.c
arch/arm/mach-omap2/usb-musb.c