Jelajahi Sumber

mfd: fix tmio related warnings

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>
Samuel Ortiz 16 tahun lalu
induk
melakukan
4d3792e054
4 mengubah file dengan 4 tambahan dan 4 penghapusan
  1. 1 1
      drivers/mfd/t7l66xb.c
  2. 1 1
      drivers/mfd/tc6387xb.c
  3. 1 1
      drivers/mfd/tc6393xb.c
  4. 1 1
      include/linux/mfd/tmio.h

+ 1 - 1
drivers/mfd/t7l66xb.c

@@ -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,
 	.hclk = 24000000,
 };
 };
 
 

+ 1 - 1
drivers/mfd/tc6387xb.c

@@ -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,
 	.hclk = 24000000,
 };
 };
 
 

+ 1 - 1
drivers/mfd/tc6393xb.c

@@ -136,7 +136,7 @@ static int tc6393xb_nand_enable(struct platform_device *nand)
 	return 0;
 	return 0;
 }
 }
 
 
-const static struct tmio_mmc_data tc6393xb_mmc_data = {
+static struct tmio_mmc_data tc6393xb_mmc_data = {
 	.hclk = 24000000,
 	.hclk = 24000000,
 };
 };
 
 

+ 1 - 1
include/linux/mfd/tmio.h

@@ -22,7 +22,7 @@
  * data for the MMC controller
  * data for the MMC controller
  */
  */
 struct tmio_mmc_data {
 struct tmio_mmc_data {
-	unsigned int		hclk;
+	const unsigned int		hclk;
 };
 };
 
 
 /*
 /*