mfd: compile fix for twl4030 renaming
authorStephen Rothwell <sfr@canb.auug.org.au>
Tue, 15 Dec 2009 05:33:10 +0000 (16:33 +1100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 15 Dec 2009 17:33:36 +0000 (09:33 -0800)
Caused by commit 0b83ddebc6e884dc0221358cf68c461520fbdd8e ("MFD:
twl4030: add twl4030_codec MFD as a new child to the core") interacting
with commit b07682b6056eb6701f8cb86aa5800e6f2ea7919b ("mfd: Rename
twl4030* driver files to enable re-use").

This file seems to have been missed in the renaming.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/mfd/twl4030-codec.c

index 77b914907d7c20a96c9d1db4c2c18a9c8b49edda..700b149c1b918251285cd2a0d80582521cf1f976 100644 (file)
@@ -26,7 +26,7 @@
 #include <linux/kernel.h>
 #include <linux/fs.h>
 #include <linux/platform_device.h>
-#include <linux/i2c/twl4030.h>
+#include <linux/i2c/twl.h>
 #include <linux/mfd/core.h>
 #include <linux/mfd/twl4030-codec.h>
 
@@ -56,7 +56,7 @@ static int twl4030_codec_set_resource(enum twl4030_codec_res id, int enable)
        struct twl4030_codec *codec = platform_get_drvdata(twl4030_codec_dev);
        u8 val;
 
-       twl4030_i2c_read_u8(TWL4030_MODULE_AUDIO_VOICE, &val,
+       twl_i2c_read_u8(TWL4030_MODULE_AUDIO_VOICE, &val,
                        codec->resource[id].reg);
 
        if (enable)
@@ -64,7 +64,7 @@ static int twl4030_codec_set_resource(enum twl4030_codec_res id, int enable)
        else
                val &= ~codec->resource[id].mask;
 
-       twl4030_i2c_write_u8(TWL4030_MODULE_AUDIO_VOICE,
+       twl_i2c_write_u8(TWL4030_MODULE_AUDIO_VOICE,
                                        val, codec->resource[id].reg);
 
        return val;
@@ -75,7 +75,7 @@ static inline int twl4030_codec_get_resource(enum twl4030_codec_res id)
        struct twl4030_codec *codec = platform_get_drvdata(twl4030_codec_dev);
        u8 val;
 
-       twl4030_i2c_read_u8(TWL4030_MODULE_AUDIO_VOICE, &val,
+       twl_i2c_read_u8(TWL4030_MODULE_AUDIO_VOICE, &val,
                        codec->resource[id].reg);
 
        return val;
@@ -183,7 +183,7 @@ static int __devinit twl4030_codec_probe(struct platform_device *pdev)
                dev_err(&pdev->dev, "Invalid audio_mclk\n");
                return -EINVAL;
        }
-       twl4030_i2c_write_u8(TWL4030_MODULE_AUDIO_VOICE,
+       twl_i2c_write_u8(TWL4030_MODULE_AUDIO_VOICE,
                                        val, TWL4030_REG_APLL_CTL);
 
        codec = kzalloc(sizeof(struct twl4030_codec), GFP_KERNEL);