Skip to content

Commit

Permalink
usb: chipidea: ci_hdrc_imx: remove unused variable 'res'
Browse files Browse the repository at this point in the history
'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>
  • Loading branch information
Fabio Estevam authored and Greg Kroah-Hartman committed Aug 14, 2013
1 parent da9651a commit 5bb3da0
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions drivers/usb/chipidea/ci_hdrc_imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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,
Expand Down

0 comments on commit 5bb3da0

Please sign in to comment.