mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Signed-off-by: Samuel Ortiz <[email protected]>
This commit is contained in:
parent
93619c2106
commit
944dc03551
4 changed files with 17 additions and 18 deletions
|
|
@ -267,7 +267,7 @@ static int tmiofb_hw_stop(struct platform_device *dev)
|
|||
*/
|
||||
static int tmiofb_hw_init(struct platform_device *dev)
|
||||
{
|
||||
struct mfd_cell *cell = mfd_get_cell(dev);
|
||||
const struct mfd_cell *cell = mfd_get_cell(dev);
|
||||
struct fb_info *info = platform_get_drvdata(dev);
|
||||
struct tmiofb_par *par = info->par;
|
||||
const struct resource *nlcr = &cell->resources[0];
|
||||
|
|
@ -311,7 +311,6 @@ static int tmiofb_hw_init(struct platform_device *dev)
|
|||
*/
|
||||
static void tmiofb_hw_mode(struct platform_device *dev)
|
||||
{
|
||||
struct mfd_cell *cell = mfd_get_cell(dev);
|
||||
struct tmio_fb_data *data = mfd_get_data(dev);
|
||||
struct fb_info *info = platform_get_drvdata(dev);
|
||||
struct fb_videomode *mode = info->mode;
|
||||
|
|
@ -680,7 +679,7 @@ static struct fb_ops tmiofb_ops = {
|
|||
|
||||
static int __devinit tmiofb_probe(struct platform_device *dev)
|
||||
{
|
||||
struct mfd_cell *cell = mfd_get_cell(dev);
|
||||
const struct mfd_cell *cell = mfd_get_cell(dev);
|
||||
struct tmio_fb_data *data = mfd_get_data(dev);
|
||||
struct resource *ccr = platform_get_resource(dev, IORESOURCE_MEM, 1);
|
||||
struct resource *lcr = platform_get_resource(dev, IORESOURCE_MEM, 0);
|
||||
|
|
@ -808,7 +807,7 @@ err_ioremap_ccr:
|
|||
|
||||
static int __devexit tmiofb_remove(struct platform_device *dev)
|
||||
{
|
||||
struct mfd_cell *cell = mfd_get_cell(dev);
|
||||
const struct mfd_cell *cell = mfd_get_cell(dev);
|
||||
struct fb_info *info = platform_get_drvdata(dev);
|
||||
int irq = platform_get_irq(dev, 0);
|
||||
struct tmiofb_par *par;
|
||||
|
|
@ -938,7 +937,7 @@ static int tmiofb_suspend(struct platform_device *dev, pm_message_t state)
|
|||
#ifdef CONFIG_FB_TMIO_ACCELL
|
||||
struct tmiofb_par *par = info->par;
|
||||
#endif
|
||||
struct mfd_cell *cell = mfd_get_cell(dev);
|
||||
const struct mfd_cell *cell = mfd_get_cell(dev);
|
||||
int retval = 0;
|
||||
|
||||
console_lock();
|
||||
|
|
@ -970,7 +969,7 @@ static int tmiofb_suspend(struct platform_device *dev, pm_message_t state)
|
|||
static int tmiofb_resume(struct platform_device *dev)
|
||||
{
|
||||
struct fb_info *info = platform_get_drvdata(dev);
|
||||
struct mfd_cell *cell = mfd_get_cell(dev);
|
||||
const struct mfd_cell *cell = mfd_get_cell(dev);
|
||||
int retval = 0;
|
||||
|
||||
console_lock();
|
||||
|
|
|
|||
Loading…
Reference in a new issue