From patchwork Tue Aug 28 10:06:19 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Figa X-Patchwork-Id: 1380481 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 181BE3FC71 for ; Tue, 28 Aug 2012 10:10:01 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T6Ih4-0003Ch-DX; Tue, 28 Aug 2012 10:06:46 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T6Igy-0003C1-Sk for linux-arm-kernel@lists.infradead.org; Tue, 28 Aug 2012 10:06:43 +0000 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0M9G001L0MQLAA60@mailout1.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 28 Aug 2012 19:06:30 +0900 (KST) X-AuditID: cbfee61a-b7fc66d0000043b7-ca-503c9826fb71 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 1A.E3.17335.6289C305; Tue, 28 Aug 2012 19:06:30 +0900 (KST) Received: from amdc1227.localnet ([106.116.147.199]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0M9G00N19MQK4P50@mmp1.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 28 Aug 2012 19:06:30 +0900 (KST) From: Tomasz Figa To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/3] ARM: EXYNOS: Use EXYNOS4210_GPEx instead of EXYNOS4_GPEx Date: Tue, 28 Aug 2012 12:06:19 +0200 Message-id: <14029212.D3MKvQZpbq@amdc1227> Organization: Samsung Poland R&D Center User-Agent: KMail/4.9 (Linux/3.5.2-gentoo; KDE/4.9.0; x86_64; ; ) In-reply-to: <4648723.rWnut7F0uJ@amdc1227> References: <4648723.rWnut7F0uJ@amdc1227> MIME-version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrKLMWRmVeSWpSXmKPExsVy+t9jAV21GTYBBme7DS02Pb7G6sDosXlJ fQBjFJdNSmpOZllqkb5dAlfGk+bXLAXXCioe31zL1sB4Kq6LkZNDQsBEYmrzAWYIW0ziwr31 bF2MXBxCAosYJVb/WcgK4axlknj5dD9YFZuAmsTnhkdsILaIgIbElK7H7CBFzAJ/GSW+7n/K 0sXIwSEs4CtxaWUuSA2LgKpE//cLjCBhXgEtibk/VEHC/ALqEu+2PWUCsUUFHCW+ToKwOYFK dk8A2csJtFdT4mBDGyOIzSsgKPFj8j0WEJtZQF5i3/6prBC2lsT6nceZJjAKzkJSNgtJ2Swk ZQsYmVcxiqYWJBcUJ6XnGuoVJ+YWl+al6yXn525iBAfmM6kdjCsbLA4xCnAwKvHwBuyyDhBi TSwrrsw9xCjBwawkwruqyiZAiDclsbIqtSg/vqg0J7X4EKM0B4uSOC9/n2GAkEB6Yklqdmpq QWoRTJaJg1OqgfHQzg2suz6tf1u3nq20+vC+ScJ9zyYq3HL+EhIkID/vhUri9gS5wMyLknNW rdLTcL1yWeVlI18Kx7LfFZ4bpki+08nfI1qxMo5nfda3mXdvs1ySOPB3RqNRhlGS7V2fFTJs IedXzrmZy8Lkrto/921a3aKA0/qzbwa5vF3rls3ydZfFK/MkaS4lluKMREMt5qLiRAD5Z9qU SAIAAA== X-Spam-Note: CRM114 invocation failed X-Spam-Score: -7.1 (-------) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-7.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [203.254.224.24 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.2 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Kukjin Kim , Linus Walleij , Grant Likely , Kyungmin Park , linux-samsung-soc@vger.kernel.org, Marek Szyprowski X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The GPEx gpios are specific to Exynos4210 and do not exist on Exynos4x12. Redefine them to use the exact SoC name. Based on "ARM: EXYYNOS: Use EXYNOS4210_GPEx instead of EXYNOS4_GPEx" by Joonyoung Shim, see: http://lists.infradead.org/pipermail/linux-arm-kernel/2012-May/100738.html Signed-off-by: Tomasz Figa Reviewed-by: Thomas Abraham --- arch/arm/mach-exynos/include/mach/gpio.h | 32 +++++++++++++++--------------- arch/arm/mach-exynos/mach-nuri.c | 16 +++++++-------- arch/arm/mach-exynos/mach-origen.c | 6 +++--- arch/arm/mach-exynos/mach-trats.c | 4 ++-- arch/arm/mach-exynos/mach-universal_c210.c | 32 +++++++++++++++--------------- arch/arm/mach-exynos/setup-fimc.c | 4 ++-- drivers/gpio/gpio-samsung.c | 20 +++++++++---------- 7 files changed, 57 insertions(+), 57 deletions(-) diff --git a/arch/arm/mach-exynos/include/mach/gpio.h b/arch/arm/mach-exynos/include/mach/gpio.h index eb24f1e..21c9bf1 100644 --- a/arch/arm/mach-exynos/include/mach/gpio.h +++ b/arch/arm/mach-exynos/include/mach/gpio.h @@ -26,11 +26,11 @@ #define EXYNOS4_GPIO_C1_NR (5) #define EXYNOS4_GPIO_D0_NR (4) #define EXYNOS4_GPIO_D1_NR (4) -#define EXYNOS4_GPIO_E0_NR (5) -#define EXYNOS4_GPIO_E1_NR (8) -#define EXYNOS4_GPIO_E2_NR (6) -#define EXYNOS4_GPIO_E3_NR (8) -#define EXYNOS4_GPIO_E4_NR (8) +#define EXYNOS4210_GPIO_E0_NR (5) +#define EXYNOS4210_GPIO_E1_NR (8) +#define EXYNOS4210_GPIO_E2_NR (6) +#define EXYNOS4210_GPIO_E3_NR (8) +#define EXYNOS4210_GPIO_E4_NR (8) #define EXYNOS4_GPIO_F0_NR (8) #define EXYNOS4_GPIO_F1_NR (8) #define EXYNOS4_GPIO_F2_NR (8) @@ -67,12 +67,12 @@ enum exynos4_gpio_number { EXYNOS4_GPIO_C1_START = EXYNOS_GPIO_NEXT(EXYNOS4_GPIO_C0), EXYNOS4_GPIO_D0_START = EXYNOS_GPIO_NEXT(EXYNOS4_GPIO_C1), EXYNOS4_GPIO_D1_START = EXYNOS_GPIO_NEXT(EXYNOS4_GPIO_D0), - EXYNOS4_GPIO_E0_START = EXYNOS_GPIO_NEXT(EXYNOS4_GPIO_D1), - EXYNOS4_GPIO_E1_START = EXYNOS_GPIO_NEXT(EXYNOS4_GPIO_E0), - EXYNOS4_GPIO_E2_START = EXYNOS_GPIO_NEXT(EXYNOS4_GPIO_E1), - EXYNOS4_GPIO_E3_START = EXYNOS_GPIO_NEXT(EXYNOS4_GPIO_E2), - EXYNOS4_GPIO_E4_START = EXYNOS_GPIO_NEXT(EXYNOS4_GPIO_E3), - EXYNOS4_GPIO_F0_START = EXYNOS_GPIO_NEXT(EXYNOS4_GPIO_E4), + EXYNOS4210_GPIO_E0_START = EXYNOS_GPIO_NEXT(EXYNOS4_GPIO_D1), + EXYNOS4210_GPIO_E1_START = EXYNOS_GPIO_NEXT(EXYNOS4210_GPIO_E0), + EXYNOS4210_GPIO_E2_START = EXYNOS_GPIO_NEXT(EXYNOS4210_GPIO_E1), + EXYNOS4210_GPIO_E3_START = EXYNOS_GPIO_NEXT(EXYNOS4210_GPIO_E2), + EXYNOS4210_GPIO_E4_START = EXYNOS_GPIO_NEXT(EXYNOS4210_GPIO_E3), + EXYNOS4_GPIO_F0_START = EXYNOS_GPIO_NEXT(EXYNOS4210_GPIO_E4), EXYNOS4_GPIO_F1_START = EXYNOS_GPIO_NEXT(EXYNOS4_GPIO_F0), EXYNOS4_GPIO_F2_START = EXYNOS_GPIO_NEXT(EXYNOS4_GPIO_F1), EXYNOS4_GPIO_F3_START = EXYNOS_GPIO_NEXT(EXYNOS4_GPIO_F2), @@ -108,11 +108,11 @@ enum exynos4_gpio_number { #define EXYNOS4_GPC1(_nr) (EXYNOS4_GPIO_C1_START + (_nr)) #define EXYNOS4_GPD0(_nr) (EXYNOS4_GPIO_D0_START + (_nr)) #define EXYNOS4_GPD1(_nr) (EXYNOS4_GPIO_D1_START + (_nr)) -#define EXYNOS4_GPE0(_nr) (EXYNOS4_GPIO_E0_START + (_nr)) -#define EXYNOS4_GPE1(_nr) (EXYNOS4_GPIO_E1_START + (_nr)) -#define EXYNOS4_GPE2(_nr) (EXYNOS4_GPIO_E2_START + (_nr)) -#define EXYNOS4_GPE3(_nr) (EXYNOS4_GPIO_E3_START + (_nr)) -#define EXYNOS4_GPE4(_nr) (EXYNOS4_GPIO_E4_START + (_nr)) +#define EXYNOS4210_GPE0(_nr) (EXYNOS4210_GPIO_E0_START + (_nr)) +#define EXYNOS4210_GPE1(_nr) (EXYNOS4210_GPIO_E1_START + (_nr)) +#define EXYNOS4210_GPE2(_nr) (EXYNOS4210_GPIO_E2_START + (_nr)) +#define EXYNOS4210_GPE3(_nr) (EXYNOS4210_GPIO_E3_START + (_nr)) +#define EXYNOS4210_GPE4(_nr) (EXYNOS4210_GPIO_E4_START + (_nr)) #define EXYNOS4_GPF0(_nr) (EXYNOS4_GPIO_F0_START + (_nr)) #define EXYNOS4_GPF1(_nr) (EXYNOS4_GPIO_F1_START + (_nr)) #define EXYNOS4_GPF2(_nr) (EXYNOS4_GPIO_F2_START + (_nr)) diff --git a/arch/arm/mach-exynos/mach-nuri.c b/arch/arm/mach-exynos/mach-nuri.c index ea785fc..426bb79 100644 --- a/arch/arm/mach-exynos/mach-nuri.c +++ b/arch/arm/mach-exynos/mach-nuri.c @@ -268,7 +268,7 @@ static struct s3c_fb_platdata nuri_fb_pdata __initdata = { static void nuri_lcd_power_on(struct plat_lcd_data *pd, unsigned int power) { - int gpio = EXYNOS4_GPE1(5); + int gpio = EXYNOS4210_GPE1(5); gpio_request(gpio, "LVDS_nSHDN"); gpio_direction_output(gpio, power); @@ -277,7 +277,7 @@ static void nuri_lcd_power_on(struct plat_lcd_data *pd, unsigned int power) static int nuri_bl_init(struct device *dev) { - return gpio_request_one(EXYNOS4_GPE2(3), GPIOF_OUT_INIT_LOW, + return gpio_request_one(EXYNOS4210_GPE2(3), GPIOF_OUT_INIT_LOW, "LCD_LD0_EN"); } @@ -286,14 +286,14 @@ static int nuri_bl_notify(struct device *dev, int brightness) if (brightness < 1) brightness = 0; - gpio_set_value(EXYNOS4_GPE2(3), 1); + gpio_set_value(EXYNOS4210_GPE2(3), 1); return brightness; } static void nuri_bl_exit(struct device *dev) { - gpio_free(EXYNOS4_GPE2(3)); + gpio_free(EXYNOS4210_GPE2(3)); } /* nuri pwm backlight */ @@ -1048,7 +1048,7 @@ static struct max8903_pdata nuri_max8903 = { */ .dok = EXYNOS4_GPX1(4), /* TA_nCONNECTED */ /* uok, usus: not connected */ - .chg = EXYNOS4_GPE2(0), /* TA_nCHG */ + .chg = EXYNOS4210_GPE2(0), /* TA_nCHG */ /* flt: vcc_1.8V_pda */ .dcm = EXYNOS4_GPL0(1), /* CURR_ADJ */ @@ -1119,7 +1119,7 @@ static struct regulator_init_data cam_vt_cam15_reg_init_data = { static struct fixed_voltage_config cam_vt_cam15_fixed_voltage_cfg = { .supply_name = "VT_CAM_1.5V", .microvolts = 1500000, - .gpio = EXYNOS4_GPE2(2), /* VT_CAM_1.5V_EN */ + .gpio = EXYNOS4210_GPE2(2), /* VT_CAM_1.5V_EN */ .enable_high = 1, .init_data = &cam_vt_cam15_reg_init_data, }; @@ -1143,7 +1143,7 @@ static struct regulator_init_data cam_vdda_reg_init_data = { static struct fixed_voltage_config cam_vdda_fixed_voltage_cfg = { .supply_name = "CAM_IO_EN", .microvolts = 2800000, - .gpio = EXYNOS4_GPE2(1), /* CAM_IO_EN */ + .gpio = EXYNOS4210_GPE2(1), /* CAM_IO_EN */ .enable_high = 1, .init_data = &cam_vdda_reg_init_data, }; @@ -1167,7 +1167,7 @@ static struct regulator_init_data cam_8m_12v_reg_init_data = { static struct fixed_voltage_config cam_8m_12v_fixed_voltage_cfg = { .supply_name = "8M_1.2V", .microvolts = 1200000, - .gpio = EXYNOS4_GPE2(5), /* 8M_1.2V_EN */ + .gpio = EXYNOS4210_GPE2(5), /* 8M_1.2V_EN */ .enable_high = 1, .init_data = &cam_8m_12v_reg_init_data, }; diff --git a/arch/arm/mach-exynos/mach-origen.c b/arch/arm/mach-exynos/mach-origen.c index 5ca8030..13424fc 100644 --- a/arch/arm/mach-exynos/mach-origen.c +++ b/arch/arm/mach-exynos/mach-origen.c @@ -591,13 +591,13 @@ static void lcd_hv070wsa_set_power(struct plat_lcd_data *pd, unsigned int power) int ret; if (power) - ret = gpio_request_one(EXYNOS4_GPE3(4), + ret = gpio_request_one(EXYNOS4210_GPE3(4), GPIOF_OUT_INIT_HIGH, "GPE3_4"); else - ret = gpio_request_one(EXYNOS4_GPE3(4), + ret = gpio_request_one(EXYNOS4210_GPE3(4), GPIOF_OUT_INIT_LOW, "GPE3_4"); - gpio_free(EXYNOS4_GPE3(4)); + gpio_free(EXYNOS4210_GPE3(4)); if (ret) pr_err("failed to request gpio for LCD power: %d\n", ret); diff --git a/arch/arm/mach-exynos/mach-trats.c b/arch/arm/mach-exynos/mach-trats.c index fdcbcbd..d2c9787 100644 --- a/arch/arm/mach-exynos/mach-trats.c +++ b/arch/arm/mach-exynos/mach-trats.c @@ -770,7 +770,7 @@ static struct regulator_init_data cam_vdda_reg_init_data = { static struct fixed_voltage_config cam_vdda_fixed_voltage_cfg = { .supply_name = "CAM_IO_EN", .microvolts = 2800000, - .gpio = EXYNOS4_GPE2(1), /* CAM_IO_EN */ + .gpio = EXYNOS4210_GPE2(1), /* CAM_IO_EN */ .enable_high = 1, .init_data = &cam_vdda_reg_init_data, }; @@ -794,7 +794,7 @@ static struct regulator_init_data cam_8m_12v_reg_init_data = { static struct fixed_voltage_config cam_8m_12v_fixed_voltage_cfg = { .supply_name = "8M_1.2V_EN", .microvolts = 1200000, - .gpio = EXYNOS4_GPE2(5), /* 8M_1.2V_EN */ + .gpio = EXYNOS4210_GPE2(5), /* 8M_1.2V_EN */ .enable_high = 1, .init_data = &cam_8m_12v_reg_init_data, }; diff --git a/arch/arm/mach-exynos/mach-universal_c210.c b/arch/arm/mach-exynos/mach-universal_c210.c index 8951bcc..9c60e66 100644 --- a/arch/arm/mach-exynos/mach-universal_c210.c +++ b/arch/arm/mach-exynos/mach-universal_c210.c @@ -552,7 +552,7 @@ static struct max8998_platform_data universal_lp3974_pdata = { .buck2_voltage1 = 1200000, /* G3D */ .buck2_voltage2 = 1100000, .buck1_default_idx = 0, - .buck2_set3 = EXYNOS4_GPE2(0), + .buck2_set3 = EXYNOS4210_GPE2(0), .buck2_default_idx = 0, .wakeup = true, }; @@ -581,7 +581,7 @@ static struct regulator_init_data hdmi_fixed_voltage_init_data = { static struct fixed_voltage_config hdmi_fixed_voltage_config = { .supply_name = "HDMI_EN1", .microvolts = 5000000, - .gpio = EXYNOS4_GPE0(1), + .gpio = EXYNOS4210_GPE0(1), .enable_high = true, .init_data = &hdmi_fixed_voltage_init_data, }; @@ -630,12 +630,12 @@ static void __init universal_tsp_init(void) int gpio; /* TSP_LDO_ON: XMDMADDR_11 */ - gpio = EXYNOS4_GPE2(3); + gpio = EXYNOS4210_GPE2(3); gpio_request_one(gpio, GPIOF_OUT_INIT_HIGH, "TSP_LDO_ON"); gpio_export(gpio, 0); /* TSP_INT: XMDMADDR_7 */ - gpio = EXYNOS4_GPE1(7); + gpio = EXYNOS4210_GPE1(7); gpio_request(gpio, "TSP_INT"); s5p_register_gpio_interrupt(gpio); @@ -661,8 +661,8 @@ static struct mcs_platform_data touchkey_data = { /* GPIO I2C 3_TOUCH 2.8V */ #define I2C_GPIO_BUS_12 12 static struct i2c_gpio_platform_data i2c_gpio12_data = { - .sda_pin = EXYNOS4_GPE4(0), /* XMDMDATA_8 */ - .scl_pin = EXYNOS4_GPE4(1), /* XMDMDATA_9 */ + .sda_pin = EXYNOS4210_GPE4(0), /* XMDMDATA_8 */ + .scl_pin = EXYNOS4210_GPE4(1), /* XMDMDATA_9 */ }; static struct platform_device i2c_gpio12 = { @@ -684,13 +684,13 @@ static void __init universal_touchkey_init(void) { int gpio; - gpio = EXYNOS4_GPE3(7); /* XMDMDATA_7 */ + gpio = EXYNOS4210_GPE3(7); /* XMDMDATA_7 */ gpio_request(gpio, "3_TOUCH_INT"); s5p_register_gpio_interrupt(gpio); s3c_gpio_cfgpin(gpio, S3C_GPIO_SFN(0xf)); i2c_gpio12_devs[0].irq = gpio_to_irq(gpio); - gpio = EXYNOS4_GPE3(3); /* XMDMDATA_3 */ + gpio = EXYNOS4210_GPE3(3); /* XMDMDATA_3 */ gpio_request_one(gpio, GPIOF_OUT_INIT_HIGH, "3_TOUCH_EN"); } @@ -776,7 +776,7 @@ static struct regulator_init_data mmc0_fixed_voltage_init_data = { static struct fixed_voltage_config mmc0_fixed_voltage_config = { .supply_name = "MASSMEMORY_EN", .microvolts = 2800000, - .gpio = EXYNOS4_GPE1(3), + .gpio = EXYNOS4210_GPE1(3), .enable_high = true, .init_data = &mmc0_fixed_voltage_init_data, }; @@ -887,7 +887,7 @@ static struct regulator_init_data cam_vt_dio_reg_init_data = { static struct fixed_voltage_config cam_vt_dio_fixed_voltage_cfg = { .supply_name = "CAM_VT_D_IO", .microvolts = 2800000, - .gpio = EXYNOS4_GPE2(1), /* CAM_PWR_EN2 */ + .gpio = EXYNOS4210_GPE2(1), /* CAM_PWR_EN2 */ .enable_high = 1, .init_data = &cam_vt_dio_reg_init_data, }; @@ -909,7 +909,7 @@ static struct regulator_init_data cam_i_core_reg_init_data = { static struct fixed_voltage_config cam_i_core_fixed_voltage_cfg = { .supply_name = "CAM_I_CORE_1.2V", .microvolts = 1200000, - .gpio = EXYNOS4_GPE2(2), /* CAM_8M_CORE_EN */ + .gpio = EXYNOS4210_GPE2(2), /* CAM_8M_CORE_EN */ .enable_high = 1, .init_data = &cam_i_core_reg_init_data, }; @@ -931,7 +931,7 @@ static struct regulator_init_data cam_s_if_reg_init_data = { static struct fixed_voltage_config cam_s_if_fixed_voltage_cfg = { .supply_name = "CAM_S_IF_1.8V", .microvolts = 1800000, - .gpio = EXYNOS4_GPE3(0), /* CAM_PWR_EN1 */ + .gpio = EXYNOS4210_GPE3(0), /* CAM_PWR_EN1 */ .enable_high = 1, .init_data = &cam_s_if_reg_init_data, }; @@ -949,11 +949,11 @@ static struct s5p_platform_mipi_csis mipi_csis_platdata = { .phy_enable = s5p_csis_phy_enable, }; -#define GPIO_CAM_LEVEL_EN(n) EXYNOS4_GPE4(n + 3) +#define GPIO_CAM_LEVEL_EN(n) EXYNOS4210_GPE4(n + 3) #define GPIO_CAM_8M_ISP_INT EXYNOS4_GPX1(5) /* XEINT_13 */ -#define GPIO_CAM_MEGA_nRST EXYNOS4_GPE2(5) -#define GPIO_CAM_VGA_NRST EXYNOS4_GPE4(7) -#define GPIO_CAM_VGA_NSTBY EXYNOS4_GPE4(6) +#define GPIO_CAM_MEGA_nRST EXYNOS4210_GPE2(5) +#define GPIO_CAM_VGA_NRST EXYNOS4210_GPE4(7) +#define GPIO_CAM_VGA_NSTBY EXYNOS4210_GPE4(6) static int s5k6aa_set_power(int on) { diff --git a/arch/arm/mach-exynos/setup-fimc.c b/arch/arm/mach-exynos/setup-fimc.c index 6a45078..d74843e 100644 --- a/arch/arm/mach-exynos/setup-fimc.c +++ b/arch/arm/mach-exynos/setup-fimc.c @@ -26,8 +26,8 @@ int exynos4_fimc_setup_gpio(enum s5p_camport_id id) break; case S5P_CAMPORT_B: - gpio8 = EXYNOS4_GPE0(0); /* DATA[0:7] */ - gpio5 = EXYNOS4_GPE1(0); /* PCLK, VSYNC, HREF, CLKOUT, FIELD */ + gpio8 = EXYNOS4210_GPE0(0); /* DATA[0:7] */ + gpio5 = EXYNOS4210_GPE1(0); /* PCLK, VSYNC, HREF, CLKOUT, FIELD */ sfn = S3C_GPIO_SFN(3); break; diff --git a/drivers/gpio/gpio-samsung.c b/drivers/gpio/gpio-samsung.c index ba126cc..c996440 100644 --- a/drivers/gpio/gpio-samsung.c +++ b/drivers/gpio/gpio-samsung.c @@ -2171,32 +2171,32 @@ static struct samsung_gpio_chip exynos4_gpios_1[] = { }, }, { .chip = { - .base = EXYNOS4_GPE0(0), - .ngpio = EXYNOS4_GPIO_E0_NR, + .base = EXYNOS4210_GPE0(0), + .ngpio = EXYNOS4210_GPIO_E0_NR, .label = "GPE0", }, }, { .chip = { - .base = EXYNOS4_GPE1(0), - .ngpio = EXYNOS4_GPIO_E1_NR, + .base = EXYNOS4210_GPE1(0), + .ngpio = EXYNOS4210_GPIO_E1_NR, .label = "GPE1", }, }, { .chip = { - .base = EXYNOS4_GPE2(0), - .ngpio = EXYNOS4_GPIO_E2_NR, + .base = EXYNOS4210_GPE2(0), + .ngpio = EXYNOS4210_GPIO_E2_NR, .label = "GPE2", }, }, { .chip = { - .base = EXYNOS4_GPE3(0), - .ngpio = EXYNOS4_GPIO_E3_NR, + .base = EXYNOS4210_GPE3(0), + .ngpio = EXYNOS4210_GPIO_E3_NR, .label = "GPE3", }, }, { .chip = { - .base = EXYNOS4_GPE4(0), - .ngpio = EXYNOS4_GPIO_E4_NR, + .base = EXYNOS4210_GPE4(0), + .ngpio = EXYNOS4210_GPIO_E4_NR, .label = "GPE4", }, }, {