aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAndres Salomon <dilinger@queued.net>2011-03-01 15:32:20 -0500
committerSamuel Ortiz <sameo@linux.intel.com>2011-03-23 05:42:01 -0400
commit944dc03551f6e812c00e586edba84b28c52ffe8c (patch)
tree18bbcdc2c9ccc6a05d217503e28a77efea662b63 /drivers
parent93619c2106e2c968a260ebffb75ddc5efa567c16 (diff)
tmio: Silence warnings introduced by mfd changes
This silences warnings such as drivers/video/tmiofb.c: In function 'tmiofb_hw_init': drivers/video/tmiofb.c:270: warning: initialization discards qualifiers from pointer target type These were added by me in commit 2a79bb1d. Signed-off-by: Andres Salomon <dilinger@queued.net> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/host/tmio_mmc.c8
-rw-r--r--drivers/mtd/nand/tmio_nand.c8
-rw-r--r--drivers/usb/host/ohci-tmio.c8
-rw-r--r--drivers/video/tmiofb.c11
4 files changed, 17 insertions, 18 deletions
diff --git a/drivers/mmc/host/tmio_mmc.c b/drivers/mmc/host/tmio_mmc.c
index f8cb06b8ed65..ab1adeabdd22 100644
--- a/drivers/mmc/host/tmio_mmc.c
+++ b/drivers/mmc/host/tmio_mmc.c
@@ -1191,7 +1191,7 @@ static const struct mmc_host_ops tmio_mmc_ops = {
1191#ifdef CONFIG_PM 1191#ifdef CONFIG_PM
1192static int tmio_mmc_suspend(struct platform_device *dev, pm_message_t state) 1192static int tmio_mmc_suspend(struct platform_device *dev, pm_message_t state)
1193{ 1193{
1194 struct mfd_cell *cell = mfd_get_cell(dev); 1194 const struct mfd_cell *cell = mfd_get_cell(dev);
1195 struct mmc_host *mmc = platform_get_drvdata(dev); 1195 struct mmc_host *mmc = platform_get_drvdata(dev);
1196 int ret; 1196 int ret;
1197 1197
@@ -1206,7 +1206,7 @@ static int tmio_mmc_suspend(struct platform_device *dev, pm_message_t state)
1206 1206
1207static int tmio_mmc_resume(struct platform_device *dev) 1207static int tmio_mmc_resume(struct platform_device *dev)
1208{ 1208{
1209 struct mfd_cell *cell = mfd_get_cell(dev); 1209 const struct mfd_cell *cell = mfd_get_cell(dev);
1210 struct mmc_host *mmc = platform_get_drvdata(dev); 1210 struct mmc_host *mmc = platform_get_drvdata(dev);
1211 int ret = 0; 1211 int ret = 0;
1212 1212
@@ -1229,7 +1229,7 @@ out:
1229 1229
1230static int __devinit tmio_mmc_probe(struct platform_device *dev) 1230static int __devinit tmio_mmc_probe(struct platform_device *dev)
1231{ 1231{
1232 struct mfd_cell *cell = mfd_get_cell(dev); 1232 const struct mfd_cell *cell = mfd_get_cell(dev);
1233 struct tmio_mmc_data *pdata; 1233 struct tmio_mmc_data *pdata;
1234 struct resource *res_ctl; 1234 struct resource *res_ctl;
1235 struct tmio_mmc_host *host; 1235 struct tmio_mmc_host *host;
@@ -1344,7 +1344,7 @@ out:
1344 1344
1345static int __devexit tmio_mmc_remove(struct platform_device *dev) 1345static int __devexit tmio_mmc_remove(struct platform_device *dev)
1346{ 1346{
1347 struct mfd_cell *cell = mfd_get_cell(dev); 1347 const struct mfd_cell *cell = mfd_get_cell(dev);
1348 struct mmc_host *mmc = platform_get_drvdata(dev); 1348 struct mmc_host *mmc = platform_get_drvdata(dev);
1349 1349
1350 platform_set_drvdata(dev, NULL); 1350 platform_set_drvdata(dev, NULL);
diff --git a/drivers/mtd/nand/tmio_nand.c b/drivers/mtd/nand/tmio_nand.c
index 2383b8f2306b..38fb16771f85 100644
--- a/drivers/mtd/nand/tmio_nand.c
+++ b/drivers/mtd/nand/tmio_nand.c
@@ -319,7 +319,7 @@ static int tmio_nand_correct_data(struct mtd_info *mtd, unsigned char *buf,
319 319
320static int tmio_hw_init(struct platform_device *dev, struct tmio_nand *tmio) 320static int tmio_hw_init(struct platform_device *dev, struct tmio_nand *tmio)
321{ 321{
322 struct mfd_cell *cell = mfd_get_cell(dev); 322 const struct mfd_cell *cell = mfd_get_cell(dev);
323 int ret; 323 int ret;
324 324
325 if (cell->enable) { 325 if (cell->enable) {
@@ -363,7 +363,7 @@ static int tmio_hw_init(struct platform_device *dev, struct tmio_nand *tmio)
363 363
364static void tmio_hw_stop(struct platform_device *dev, struct tmio_nand *tmio) 364static void tmio_hw_stop(struct platform_device *dev, struct tmio_nand *tmio)
365{ 365{
366 struct mfd_cell *cell = mfd_get_cell(dev); 366 const struct mfd_cell *cell = mfd_get_cell(dev);
367 367
368 tmio_iowrite8(FCR_MODE_POWER_OFF, tmio->fcr + FCR_MODE); 368 tmio_iowrite8(FCR_MODE_POWER_OFF, tmio->fcr + FCR_MODE);
369 if (cell->disable) 369 if (cell->disable)
@@ -515,7 +515,7 @@ static int tmio_remove(struct platform_device *dev)
515#ifdef CONFIG_PM 515#ifdef CONFIG_PM
516static int tmio_suspend(struct platform_device *dev, pm_message_t state) 516static int tmio_suspend(struct platform_device *dev, pm_message_t state)
517{ 517{
518 struct mfd_cell *cell = mfd_get_cell(dev); 518 const struct mfd_cell *cell = mfd_get_cell(dev);
519 519
520 if (cell->suspend) 520 if (cell->suspend)
521 cell->suspend(dev); 521 cell->suspend(dev);
@@ -526,7 +526,7 @@ static int tmio_suspend(struct platform_device *dev, pm_message_t state)
526 526
527static int tmio_resume(struct platform_device *dev) 527static int tmio_resume(struct platform_device *dev)
528{ 528{
529 struct mfd_cell *cell = mfd_get_cell(dev); 529 const struct mfd_cell *cell = mfd_get_cell(dev);
530 530
531 /* FIXME - is this required or merely another attack of the broken 531 /* FIXME - is this required or merely another attack of the broken
532 * SHARP platform? Looks suspicious. 532 * SHARP platform? Looks suspicious.
diff --git a/drivers/usb/host/ohci-tmio.c b/drivers/usb/host/ohci-tmio.c
index eeed16461e0d..3558491dd87d 100644
--- a/drivers/usb/host/ohci-tmio.c
+++ b/drivers/usb/host/ohci-tmio.c
@@ -185,7 +185,7 @@ static struct platform_driver ohci_hcd_tmio_driver;
185 185
186static int __devinit ohci_hcd_tmio_drv_probe(struct platform_device *dev) 186static int __devinit ohci_hcd_tmio_drv_probe(struct platform_device *dev)
187{ 187{
188 struct mfd_cell *cell = mfd_get_cell(dev); 188 const struct mfd_cell *cell = mfd_get_cell(dev);
189 struct resource *regs = platform_get_resource(dev, IORESOURCE_MEM, 0); 189 struct resource *regs = platform_get_resource(dev, IORESOURCE_MEM, 0);
190 struct resource *config = platform_get_resource(dev, IORESOURCE_MEM, 1); 190 struct resource *config = platform_get_resource(dev, IORESOURCE_MEM, 1);
191 struct resource *sram = platform_get_resource(dev, IORESOURCE_MEM, 2); 191 struct resource *sram = platform_get_resource(dev, IORESOURCE_MEM, 2);
@@ -274,7 +274,7 @@ static int __devexit ohci_hcd_tmio_drv_remove(struct platform_device *dev)
274{ 274{
275 struct usb_hcd *hcd = platform_get_drvdata(dev); 275 struct usb_hcd *hcd = platform_get_drvdata(dev);
276 struct tmio_hcd *tmio = hcd_to_tmio(hcd); 276 struct tmio_hcd *tmio = hcd_to_tmio(hcd);
277 struct mfd_cell *cell = mfd_get_cell(dev); 277 const struct mfd_cell *cell = mfd_get_cell(dev);
278 278
279 usb_remove_hcd(hcd); 279 usb_remove_hcd(hcd);
280 tmio_stop_hc(dev); 280 tmio_stop_hc(dev);
@@ -293,7 +293,7 @@ static int __devexit ohci_hcd_tmio_drv_remove(struct platform_device *dev)
293#ifdef CONFIG_PM 293#ifdef CONFIG_PM
294static int ohci_hcd_tmio_drv_suspend(struct platform_device *dev, pm_message_t state) 294static int ohci_hcd_tmio_drv_suspend(struct platform_device *dev, pm_message_t state)
295{ 295{
296 struct mfd_cell *cell = mfd_get_cell(dev); 296 const struct mfd_cell *cell = mfd_get_cell(dev);
297 struct usb_hcd *hcd = platform_get_drvdata(dev); 297 struct usb_hcd *hcd = platform_get_drvdata(dev);
298 struct ohci_hcd *ohci = hcd_to_ohci(hcd); 298 struct ohci_hcd *ohci = hcd_to_ohci(hcd);
299 struct tmio_hcd *tmio = hcd_to_tmio(hcd); 299 struct tmio_hcd *tmio = hcd_to_tmio(hcd);
@@ -326,7 +326,7 @@ static int ohci_hcd_tmio_drv_suspend(struct platform_device *dev, pm_message_t s
326 326
327static int ohci_hcd_tmio_drv_resume(struct platform_device *dev) 327static int ohci_hcd_tmio_drv_resume(struct platform_device *dev)
328{ 328{
329 struct mfd_cell *cell = mfd_get_cell(dev); 329 const struct mfd_cell *cell = mfd_get_cell(dev);
330 struct usb_hcd *hcd = platform_get_drvdata(dev); 330 struct usb_hcd *hcd = platform_get_drvdata(dev);
331 struct ohci_hcd *ohci = hcd_to_ohci(hcd); 331 struct ohci_hcd *ohci = hcd_to_ohci(hcd);
332 struct tmio_hcd *tmio = hcd_to_tmio(hcd); 332 struct tmio_hcd *tmio = hcd_to_tmio(hcd);
diff --git a/drivers/video/tmiofb.c b/drivers/video/tmiofb.c
index 7e57d3baab23..9710bf8caeae 100644
--- a/drivers/video/tmiofb.c
+++ b/drivers/video/tmiofb.c
@@ -267,7 +267,7 @@ static int tmiofb_hw_stop(struct platform_device *dev)
267 */ 267 */
268static int tmiofb_hw_init(struct platform_device *dev) 268static int tmiofb_hw_init(struct platform_device *dev)
269{ 269{
270 struct mfd_cell *cell = mfd_get_cell(dev); 270 const struct mfd_cell *cell = mfd_get_cell(dev);
271 struct fb_info *info = platform_get_drvdata(dev); 271 struct fb_info *info = platform_get_drvdata(dev);
272 struct tmiofb_par *par = info->par; 272 struct tmiofb_par *par = info->par;
273 const struct resource *nlcr = &cell->resources[0]; 273 const struct resource *nlcr = &cell->resources[0];
@@ -311,7 +311,6 @@ static int tmiofb_hw_init(struct platform_device *dev)
311 */ 311 */
312static void tmiofb_hw_mode(struct platform_device *dev) 312static void tmiofb_hw_mode(struct platform_device *dev)
313{ 313{
314 struct mfd_cell *cell = mfd_get_cell(dev);
315 struct tmio_fb_data *data = mfd_get_data(dev); 314 struct tmio_fb_data *data = mfd_get_data(dev);
316 struct fb_info *info = platform_get_drvdata(dev); 315 struct fb_info *info = platform_get_drvdata(dev);
317 struct fb_videomode *mode = info->mode; 316 struct fb_videomode *mode = info->mode;
@@ -680,7 +679,7 @@ static struct fb_ops tmiofb_ops = {
680 679
681static int __devinit tmiofb_probe(struct platform_device *dev) 680static int __devinit tmiofb_probe(struct platform_device *dev)
682{ 681{
683 struct mfd_cell *cell = mfd_get_cell(dev); 682 const struct mfd_cell *cell = mfd_get_cell(dev);
684 struct tmio_fb_data *data = mfd_get_data(dev); 683 struct tmio_fb_data *data = mfd_get_data(dev);
685 struct resource *ccr = platform_get_resource(dev, IORESOURCE_MEM, 1); 684 struct resource *ccr = platform_get_resource(dev, IORESOURCE_MEM, 1);
686 struct resource *lcr = platform_get_resource(dev, IORESOURCE_MEM, 0); 685 struct resource *lcr = platform_get_resource(dev, IORESOURCE_MEM, 0);
@@ -808,7 +807,7 @@ err_ioremap_ccr:
808 807
809static int __devexit tmiofb_remove(struct platform_device *dev) 808static int __devexit tmiofb_remove(struct platform_device *dev)
810{ 809{
811 struct mfd_cell *cell = mfd_get_cell(dev); 810 const struct mfd_cell *cell = mfd_get_cell(dev);
812 struct fb_info *info = platform_get_drvdata(dev); 811 struct fb_info *info = platform_get_drvdata(dev);
813 int irq = platform_get_irq(dev, 0); 812 int irq = platform_get_irq(dev, 0);
814 struct tmiofb_par *par; 813 struct tmiofb_par *par;
@@ -938,7 +937,7 @@ static int tmiofb_suspend(struct platform_device *dev, pm_message_t state)
938#ifdef CONFIG_FB_TMIO_ACCELL 937#ifdef CONFIG_FB_TMIO_ACCELL
939 struct tmiofb_par *par = info->par; 938 struct tmiofb_par *par = info->par;
940#endif 939#endif
941 struct mfd_cell *cell = mfd_get_cell(dev); 940 const struct mfd_cell *cell = mfd_get_cell(dev);
942 int retval = 0; 941 int retval = 0;
943 942
944 console_lock(); 943 console_lock();
@@ -970,7 +969,7 @@ static int tmiofb_suspend(struct platform_device *dev, pm_message_t state)
970static int tmiofb_resume(struct platform_device *dev) 969static int tmiofb_resume(struct platform_device *dev)
971{ 970{
972 struct fb_info *info = platform_get_drvdata(dev); 971 struct fb_info *info = platform_get_drvdata(dev);
973 struct mfd_cell *cell = mfd_get_cell(dev); 972 const struct mfd_cell *cell = mfd_get_cell(dev);
974 int retval = 0; 973 int retval = 0;
975 974
976 console_lock(); 975 console_lock();