summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-mxc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpio/gpio-mxc.c')
-rw-r--r--drivers/gpio/gpio-mxc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-mxc.c b/drivers/gpio/gpio-mxc.c
index e4f42c95c320..ec1eb1b7250f 100644
--- a/drivers/gpio/gpio-mxc.c
+++ b/drivers/gpio/gpio-mxc.c
@@ -131,7 +131,7 @@ static struct mxc_gpio_hwdata *mxc_gpio_hwdata;
131#define GPIO_INT_FALL_EDGE (mxc_gpio_hwdata->fall_edge) 131#define GPIO_INT_FALL_EDGE (mxc_gpio_hwdata->fall_edge)
132#define GPIO_INT_BOTH_EDGES 0x4 132#define GPIO_INT_BOTH_EDGES 0x4
133 133
134static struct platform_device_id mxc_gpio_devtype[] = { 134static const struct platform_device_id mxc_gpio_devtype[] = {
135 { 135 {
136 .name = "imx1-gpio", 136 .name = "imx1-gpio",
137 .driver_data = IMX1_GPIO, 137 .driver_data = IMX1_GPIO,
@@ -449,7 +449,8 @@ static int mxc_gpio_probe(struct platform_device *pdev)
449 err = bgpio_init(&port->bgc, &pdev->dev, 4, 449 err = bgpio_init(&port->bgc, &pdev->dev, 4,
450 port->base + GPIO_PSR, 450 port->base + GPIO_PSR,
451 port->base + GPIO_DR, NULL, 451 port->base + GPIO_DR, NULL,
452 port->base + GPIO_GDIR, NULL, 0); 452 port->base + GPIO_GDIR, NULL,
453 BGPIOF_READ_OUTPUT_REG_SET);
453 if (err) 454 if (err)
454 goto out_bgio; 455 goto out_bgio;
455 456