|
@@ -551,6 +551,8 @@ static int ohci_hcd_at91_drv_probe(struct platform_device *pdev)
|
|
pdata->overcurrent_pin[i] =
|
|
pdata->overcurrent_pin[i] =
|
|
devm_gpiod_get_index_optional(&pdev->dev, "atmel,oc",
|
|
devm_gpiod_get_index_optional(&pdev->dev, "atmel,oc",
|
|
i, GPIOD_IN);
|
|
i, GPIOD_IN);
|
|
|
|
+ if (!pdata->overcurrent_pin[i])
|
|
|
|
+ continue;
|
|
if (IS_ERR(pdata->overcurrent_pin[i])) {
|
|
if (IS_ERR(pdata->overcurrent_pin[i])) {
|
|
err = PTR_ERR(pdata->overcurrent_pin[i]);
|
|
err = PTR_ERR(pdata->overcurrent_pin[i]);
|
|
dev_err(&pdev->dev, "unable to claim gpio \"overcurrent\": %d\n", err);
|
|
dev_err(&pdev->dev, "unable to claim gpio \"overcurrent\": %d\n", err);
|