]> 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)
commit2686d9df8c9d1251a313f6344c52785f1afc7e06
tree50b43175441704b6edaa96bca3fe434a891d3f39
parent5ab1957f53a60ff3aa128f8a2f2ca9c7de85d169
ARM: OMAP2+: Fix MUSB ifdefs for platform init code

Commit b8dd2eb2 (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