aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/s3c-hsudc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget/s3c-hsudc.c')
-rw-r--r--drivers/usb/gadget/s3c-hsudc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/gadget/s3c-hsudc.c b/drivers/usb/gadget/s3c-hsudc.c
index 52379b11f080..d2b8791bba28 100644
--- a/drivers/usb/gadget/s3c-hsudc.c
+++ b/drivers/usb/gadget/s3c-hsudc.c
@@ -1286,7 +1286,7 @@ static int s3c_hsudc_probe(struct platform_device *pdev)
1286 for (i = 0; i < ARRAY_SIZE(hsudc->supplies); i++) 1286 for (i = 0; i < ARRAY_SIZE(hsudc->supplies); i++)
1287 hsudc->supplies[i].supply = s3c_hsudc_supply_names[i]; 1287 hsudc->supplies[i].supply = s3c_hsudc_supply_names[i];
1288 1288
1289 ret = regulator_bulk_get(dev, ARRAY_SIZE(hsudc->supplies), 1289 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(hsudc->supplies),
1290 hsudc->supplies); 1290 hsudc->supplies);
1291 if (ret != 0) { 1291 if (ret != 0) {
1292 dev_err(dev, "failed to request supplies: %d\n", ret); 1292 dev_err(dev, "failed to request supplies: %d\n", ret);
@@ -1367,7 +1367,6 @@ err_res:
1367 if (!IS_ERR_OR_NULL(hsudc->transceiver)) 1367 if (!IS_ERR_OR_NULL(hsudc->transceiver))
1368 usb_put_phy(hsudc->transceiver); 1368 usb_put_phy(hsudc->transceiver);
1369 1369
1370 regulator_bulk_free(ARRAY_SIZE(hsudc->supplies), hsudc->supplies);
1371err_supplies: 1370err_supplies:
1372 return ret; 1371 return ret;
1373} 1372}