Message ID | 1382909086-10493-3-git-send-email-sre@debian.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Hi! > From: Pali Rohár <pali.rohar@gmail.com> > > This patch adds support for the audio chip to the legacy > boardcode of the Nokia N900. In 0/4, you said: > For example non DT boot > does not work, because I did not yet add pdata in boardcode. So, perhaps we don't need this patch for now and can rely only do audio on device-tree-enabled configurations? Thanks, Pavel
diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c index 68dc998..65e3627 100644 --- a/arch/arm/mach-omap2/board-rx51-peripherals.c +++ b/arch/arm/mach-omap2/board-rx51-peripherals.c @@ -1205,6 +1205,16 @@ error: */ } +static struct platform_device rx51_audio_device = { + .name = "rx51-audio", + .id = -1, +}; + +static void __init rx51_init_audio(void) +{ + platform_device_register(&rx51_audio_device); +} + static struct tsc2005_platform_data tsc2005_pdata = { .ts_pressure_max = 2048, .ts_pressure_fudge = 2, @@ -1287,6 +1297,7 @@ void __init rx51_peripherals_init(void) gpmc_onenand_init(board_onenand_data); board_smc91x_init(); rx51_add_gpio_keys(); + rx51_init_audio(); rx51_init_wl1251(); rx51_init_tsc2005(); rx51_init_si4713();