]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mfd: fix tmio related warnings
authorSamuel Ortiz <sameo@linux.intel.com>
Mon, 15 Jun 2009 13:43:31 +0000 (15:43 +0200)
committerSamuel Ortiz <sameol@linux.intel.com>
Wed, 17 Jun 2009 17:41:52 +0000 (19:41 +0200)
We can not have .driver_data as const since platform_set_drvdata() doesnt take
a const.
The hclk mmc_data field can be const though.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/t7l66xb.c
drivers/mfd/tc6387xb.c
drivers/mfd/tc6393xb.c
include/linux/mfd/tmio.h

index 875f7a875734252cd868996ec048a53793e9deb3..0a255c1f1ce7b60a3633b487ecaa18797eda43aa 100644 (file)
@@ -108,7 +108,7 @@ static int t7l66xb_mmc_disable(struct platform_device *mmc)
 
 /*--------------------------------------------------------------------------*/
 
-static const struct tmio_mmc_data t7166xb_mmc_data = {
+static struct tmio_mmc_data t7166xb_mmc_data = {
        .hclk = 24000000,
 };
 
index c3993ac20542db00bdc2e5e6a8c54a244d3a3e4a..3280ab33f88ab20944e0ec15018236d73f207f5e 100644 (file)
@@ -75,7 +75,7 @@ static int tc6387xb_mmc_disable(struct platform_device *mmc)
 
 /*--------------------------------------------------------------------------*/
 
-const static struct tmio_mmc_data tc6387xb_mmc_data = {
+static struct tmio_mmc_data tc6387xb_mmc_data = {
        .hclk = 24000000,
 };
 
index 9d2abb5d6e2cd4c69f4b535583b41fa89fce2242..1429a7341a9a976481b2ba11ad29258ba2cc6ac2 100644 (file)
@@ -136,7 +136,7 @@ static int tc6393xb_nand_enable(struct platform_device *nand)
        return 0;
 }
 
-const static struct tmio_mmc_data tc6393xb_mmc_data = {
+static struct tmio_mmc_data tc6393xb_mmc_data = {
        .hclk = 24000000,
 };
 
index c377118884e66bd61fd87d5ffaa247effd5fb5ae..6b9c5d06690c8d9f82bd99a19e215b9fc8e1a683 100644 (file)
@@ -22,7 +22,7 @@
  * data for the MMC controller
  */
 struct tmio_mmc_data {
-       unsigned int            hclk;
+       const unsigned int              hclk;
 };
 
 /*