From: Lothar Waßmann Date: Tue, 23 Jun 2015 05:34:21 +0000 (+0200) Subject: video: atmel_hlcdfb: change type of 'mmio' to avoid unnecessary type casts X-Git-Tag: KARO-TXA5-2015-06-26~7 X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=commitdiff_plain;h=36ca801375c940c37449a07d9359989659708801;hp=7dcdb2fd74d0ea86a83b436a910ae5ebd166430f video: atmel_hlcdfb: change type of 'mmio' to avoid unnecessary type casts --- diff --git a/drivers/video/atmel_hlcdfb.c b/drivers/video/atmel_hlcdfb.c index 935ae42a9c..d27928eea4 100644 --- a/drivers/video/atmel_hlcdfb.c +++ b/drivers/video/atmel_hlcdfb.c @@ -46,7 +46,7 @@ void lcd_ctrl_init(void *lcdbase) if (!has_lcdc()) return; /* No lcdc */ - regs = (struct atmel_hlcd_regs *)panel_info.mmio; + regs = panel_info.mmio; /* Disable DISP signal */ lcdc_writel(®s->lcdc_lcddis, LCDC_LCDDIS_DISPDIS); diff --git a/include/lcd.h b/include/lcd.h index eb1d12871f..187584ca13 100644 --- a/include/lcd.h +++ b/include/lcd.h @@ -167,7 +167,7 @@ typedef struct vidinfo { u_long vl_upper_margin; /* Time from sync to picture */ u_long vl_lower_margin; /* Time from picture to sync */ - u_long mmio; /* Memory mapped registers */ + void *mmio; /* Memory mapped registers */ } vidinfo_t; #elif defined(CONFIG_EXYNOS_FB)