usb: r8a66597-hcd platform data on_chip support
commit719a72b7c75bb239ca6184190ab994b71a31c6dc
authorMagnus Damm <damm@igel.co.jp>
Fri, 17 Jul 2009 14:59:55 +0000 (17 14:59 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Sun, 19 Jul 2009 19:27:10 +0000 (20 04:27 +0900)
tree43123abb8a4543988eaa6d0ef13bafb4e4e551d3
parentae1cef6ea155328905cb359ec7c2a47776d2d4d4
usb: r8a66597-hcd platform data on_chip support

Convert the r8a66597-hcd driver to use the on_chip flag
from platform data to enable on chip behaviour instead
of relying on CONFIG_SUPERH_ON_CHIP_R8A66597 ugliness.

This makes the code cleaner and also allows us to support
both external and internal r8a66597 with the same kernel.

It also makes the Kconfig part more future proof since
we with this patch can add support for new processors
with on-chip r8a66597 without modifying the Kconfig.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/boards/mach-se/7724/setup.c
arch/sh/kernel/cpu/sh4a/setup-sh7366.c
arch/sh/kernel/cpu/sh4a/setup-sh7723.c
drivers/usb/host/Kconfig
drivers/usb/host/r8a66597-hcd.c
drivers/usb/host/r8a66597.h
include/linux/usb/r8a66597.h