]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
chipidea: ci_hdrc_imx: Remove unused variable 'res'
authorFabio Estevam <fabio.estevam@freescale.com>
Thu, 25 Jul 2013 03:55:28 +0000 (00:55 -0300)
committerJason Liu <r64343@freescale.com>
Wed, 30 Oct 2013 01:54:13 +0000 (09:54 +0800)
'res' is not used anywhere, so let's get rid of it.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
drivers/usb/chipidea/ci_hdrc_imx.c

index 08730100f68a12b7af89fff2fa8145e6231f8ab4..ef3d32dc43976d7ddf6f6477c9f97e430e308055 100644 (file)
@@ -96,7 +96,6 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev)
                                  CI_HDRC_PULLUP_ON_VBUS |
                                  CI_HDRC_DISABLE_STREAMING,
        };
-       struct resource *res;
        int ret;
 
        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)
                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);
        if (IS_ERR(data->clk)) {
                dev_err(&pdev->dev,