diff options
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r-- | drivers/pinctrl/sh-pfc/gpio.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pinctrl/sh-pfc/gpio.c b/drivers/pinctrl/sh-pfc/gpio.c index 7a54ec79518b..317cebb0ee4d 100644 --- a/drivers/pinctrl/sh-pfc/gpio.c +++ b/drivers/pinctrl/sh-pfc/gpio.c | |||
@@ -354,6 +354,9 @@ int sh_pfc_register_gpiochip(struct sh_pfc *pfc) | |||
354 | unsigned int i; | 354 | unsigned int i; |
355 | int ret; | 355 | int ret; |
356 | 356 | ||
357 | if (pfc->info->data_regs == NULL) | ||
358 | return 0; | ||
359 | |||
357 | /* Register the real GPIOs chip. */ | 360 | /* Register the real GPIOs chip. */ |
358 | chip = sh_pfc_add_gpiochip(pfc, gpio_pin_setup); | 361 | chip = sh_pfc_add_gpiochip(pfc, gpio_pin_setup); |
359 | if (IS_ERR(chip)) | 362 | if (IS_ERR(chip)) |