We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 105f3fd commit 21cdd6aCopy full SHA for 21cdd6a
drivers/usb/musb/mpfs.c
@@ -181,8 +181,10 @@ static int mpfs_probe(struct platform_device *pdev)
181
glue->clk = clk;
182
183
pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL);
184
- if (!pdata)
+ if (!pdata) {
185
+ ret = -ENOMEM;
186
goto err_clk_disable;
187
+ }
188
189
pdata->config = &mpfs_musb_hdrc_config;
190
pdata->platform_ops = &mpfs_ops;
@@ -197,6 +199,7 @@ static int mpfs_probe(struct platform_device *pdev)
197
199
if (IS_ERR(glue->phy)) {
198
200
dev_err(dev, "failed to register usb-phy %ld\n",
201
PTR_ERR(glue->phy));
202
+ ret = PTR_ERR(glue->phy);
203
204
}
205
0 commit comments