usb: chipidea: ci_hdrc_imx: remove unused variable 'res'
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 14 Aug 2013 09:43:55 +0000 (12:43 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2013 19:34:15 +0000 (12:34 -0700)
'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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/ci_hdrc_imx.c

index 14362c00db3f3e29bfdf24b3ff8bcd029e95b749..06bc77554ec646fe7ba8a92dcfe05a7d1078c48b 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,