Commit 5bb3da0e authored by Fabio Estevam's avatar Fabio Estevam Committed by Greg Kroah-Hartman

usb: chipidea: ci_hdrc_imx: remove unused variable 'res'

'res' is not used anywhere, so let's get rid of it.
Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Acked-by: default avatarPeter Chen <peter.chen@freescale.com>
Signed-off-by: default avatarAlexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent da9651a5
...@@ -96,7 +96,6 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev) ...@@ -96,7 +96,6 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev)
CI_HDRC_PULLUP_ON_VBUS | CI_HDRC_PULLUP_ON_VBUS |
CI_HDRC_DISABLE_STREAMING, CI_HDRC_DISABLE_STREAMING,
}; };
struct resource *res;
int ret; int ret;
if (of_find_property(pdev->dev.of_node, "fsl,usbmisc", NULL) if (of_find_property(pdev->dev.of_node, "fsl,usbmisc", NULL)
...@@ -109,12 +108,6 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev) ...@@ -109,12 +108,6 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev)
return -ENOMEM; return -ENOMEM;
} }
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (!res) {
dev_err(&pdev->dev, "Can't get device resources!\n");
return -ENOENT;
}
data->clk = devm_clk_get(&pdev->dev, NULL); data->clk = devm_clk_get(&pdev->dev, NULL);
if (IS_ERR(data->clk)) { if (IS_ERR(data->clk)) {
dev_err(&pdev->dev, dev_err(&pdev->dev,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment