Instead of hardcoding on the driver, pass that via platform_data instead. Signed-off-by: Felipe Balbi <balbi@xxxxxx> --- arch/arm/mach-omap1/board-nokia770.c | 1 + arch/arm/mach-omap2/board-n8x0.c | 1 + arch/arm/plat-omap/include/plat/cbus.h | 1 + 3 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap1/board-nokia770.c b/arch/arm/mach-omap1/board-nokia770.c index d939370..f2a92b5 100644 --- a/arch/arm/mach-omap1/board-nokia770.c +++ b/arch/arm/mach-omap1/board-nokia770.c @@ -126,6 +126,7 @@ static struct resource retu_resource[] = { static struct cbus_retu_platform_data nokia770_retu_data = { .irq_base = CBUS_RETU_IRQ_BASE, .irq_end = CBUS_RETU_IRQ_END, + .devid = CBUS_RETU_DEVICE_ID, }; static struct platform_device retu_device = { diff --git a/arch/arm/mach-omap2/board-n8x0.c b/arch/arm/mach-omap2/board-n8x0.c index 1e4bfb2..e00c0fa 100644 --- a/arch/arm/mach-omap2/board-n8x0.c +++ b/arch/arm/mach-omap2/board-n8x0.c @@ -223,6 +223,7 @@ static struct resource retu_resource[] = { static struct cbus_retu_platform_data n8x0_retu_data = { .irq_base = CBUS_RETU_IRQ_BASE, .irq_end = CBUS_RETU_IRQ_END, + .devid = CBUS_RETU_DEVICE_ID, }; static struct platform_device retu_device = { diff --git a/arch/arm/plat-omap/include/plat/cbus.h b/arch/arm/plat-omap/include/plat/cbus.h index e7ace57..563b1c2 100644 --- a/arch/arm/plat-omap/include/plat/cbus.h +++ b/arch/arm/plat-omap/include/plat/cbus.h @@ -34,6 +34,7 @@ struct cbus_host_platform_data { struct cbus_retu_platform_data { int irq_base; int irq_end; + int devid; }; #endif /* __PLAT_CBUS_H */ -- 1.7.4.rc2 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html