diff options
author | Andres Salomon <dilinger@queued.net> | 2011-03-01 15:32:20 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-03-23 05:42:01 -0400 |
commit | 944dc03551f6e812c00e586edba84b28c52ffe8c (patch) | |
tree | 18bbcdc2c9ccc6a05d217503e28a77efea662b63 /drivers/mtd | |
parent | 93619c2106e2c968a260ebffb75ddc5efa567c16 (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/mtd')
-rw-r--r-- | drivers/mtd/nand/tmio_nand.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 | ||
320 | static int tmio_hw_init(struct platform_device *dev, struct tmio_nand *tmio) | 320 | static 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 | ||
364 | static void tmio_hw_stop(struct platform_device *dev, struct tmio_nand *tmio) | 364 | static 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 |
516 | static int tmio_suspend(struct platform_device *dev, pm_message_t state) | 516 | static 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 | ||
527 | static int tmio_resume(struct platform_device *dev) | 527 | static 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. |