|
@@ -334,6 +334,7 @@ static int mpc8xxx_probe(struct platform_device *pdev)
|
|
|
|
|
|
mpc8xxx_gc->read_reg = gc->read_reg;
|
|
mpc8xxx_gc->read_reg = gc->read_reg;
|
|
mpc8xxx_gc->write_reg = gc->write_reg;
|
|
mpc8xxx_gc->write_reg = gc->write_reg;
|
|
|
|
+ mpc8xxx_gc->direction_output = gc->direction_output;
|
|
|
|
|
|
if (!devtype)
|
|
if (!devtype)
|
|
devtype = &mpc8xxx_gpio_devtype_default;
|
|
devtype = &mpc8xxx_gpio_devtype_default;
|
|
@@ -348,8 +349,6 @@ static int mpc8xxx_probe(struct platform_device *pdev)
|
|
gc->get = devtype->gpio_get ?: gc->get;
|
|
gc->get = devtype->gpio_get ?: gc->get;
|
|
gc->to_irq = mpc8xxx_gpio_to_irq;
|
|
gc->to_irq = mpc8xxx_gpio_to_irq;
|
|
|
|
|
|
- mpc8xxx_gc->direction_output = gc->direction_output;
|
|
|
|
-
|
|
|
|
ret = gpiochip_add_data(gc, mpc8xxx_gc);
|
|
ret = gpiochip_add_data(gc, mpc8xxx_gc);
|
|
if (ret) {
|
|
if (ret) {
|
|
pr_err("%s: GPIO chip registration failed with status %d\n",
|
|
pr_err("%s: GPIO chip registration failed with status %d\n",
|