]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
ASoC: tpa6130a2: Remove model_id from platform data
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Tue, 30 Aug 2011 11:39:54 +0000 (14:39 +0300)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 21 Sep 2011 15:07:45 +0000 (16:07 +0100)
The model_id is no longer needed within the platform_data
for the TPA driver since the model of TPA specified
with the device name (tpa6130a2/tpa6140a2).

Also update rx51 (the only affected user) to use the device name rather
than platform data.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Tested-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
arch/arm/mach-omap2/board-rx51-peripherals.c
include/sound/tpa6130a2-plat.h
sound/soc/codecs/tpa6130a2.c

index 5a886cd2c598c408f3e007e01a5f5e2b0ae9ca94..ba1aa07bdb29d325841b74da3117e76e60e5b668 100644 (file)
@@ -900,7 +900,6 @@ static struct twl4030_platform_data rx51_twldata __initdata = {
 };
 
 static struct tpa6130a2_platform_data rx51_tpa6130a2_data __initdata_or_module = {
-       .id                     = TPA6130A2,
        .power_gpio             = 98,
 };
 
index 89beccb57edd578bfdf2f8d460204f71e4ea80b4..4cc1093844c8a8c319c4ade6e7d0e60b795c2642 100644 (file)
 #ifndef TPA6130A2_PLAT_H
 #define TPA6130A2_PLAT_H
 
-enum tpa_model {
-       TPA6130A2,
-       TPA6140A2,
-};
-
 struct tpa6130a2_platform_data {
-       enum tpa_model id;
        int power_gpio;
 };
 
index a14689be700a8c109a9eebda11967dcfb68018d5..7eeca79d738784e612a3cca65bb15faa67a0a4b8 100644 (file)
 
 #include "tpa6130a2.h"
 
+enum tpa_model {
+       TPA6130A2,
+       TPA6140A2,
+};
+
 static struct i2c_client *tpa6130a2_client;
 
 /* This struct is used to save the context */