summaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-mxc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-mxc.c b/drivers/gpio/gpio-mxc.c
index 2d1dfa1e0745..e86e61dda4b7 100644
--- a/drivers/gpio/gpio-mxc.c
+++ b/drivers/gpio/gpio-mxc.c
@@ -438,8 +438,11 @@ static int mxc_gpio_probe(struct platform_device *pdev)
438 438
439 /* the controller clock is optional */ 439 /* the controller clock is optional */
440 port->clk = devm_clk_get(&pdev->dev, NULL); 440 port->clk = devm_clk_get(&pdev->dev, NULL);
441 if (IS_ERR(port->clk)) 441 if (IS_ERR(port->clk)) {
442 if (PTR_ERR(port->clk) == -EPROBE_DEFER)
443 return -EPROBE_DEFER;
442 port->clk = NULL; 444 port->clk = NULL;
445 }
443 446
444 err = clk_prepare_enable(port->clk); 447 err = clk_prepare_enable(port->clk);
445 if (err) { 448 if (err) {