aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2013-08-14 05:43:55 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-14 15:34:15 -0400
commit5bb3da0ec0c3e60c15656250120c110317746d23 (patch)
tree1b19d22cdd2bfc4ec90b5d0cd2f3293dc1a3ef0d
parentda9651a5d3d3bdb40e487e6f90f2e092a05f45b4 (diff)
usb: chipidea: ci_hdrc_imx: remove unused variable 'res'
'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>
-rw-r--r--drivers/usb/chipidea/ci_hdrc_imx.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/usb/chipidea/ci_hdrc_imx.c b/drivers/usb/chipidea/ci_hdrc_imx.c
index 14362c00db3f..06bc77554ec6 100644
--- a/drivers/usb/chipidea/ci_hdrc_imx.c
+++ b/drivers/usb/chipidea/ci_hdrc_imx.c
@@ -96,7 +96,6 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev)
96 CI_HDRC_PULLUP_ON_VBUS | 96 CI_HDRC_PULLUP_ON_VBUS |
97 CI_HDRC_DISABLE_STREAMING, 97 CI_HDRC_DISABLE_STREAMING,
98 }; 98 };
99 struct resource *res;
100 int ret; 99 int ret;
101 100
102 if (of_find_property(pdev->dev.of_node, "fsl,usbmisc", NULL) 101 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 return -ENOMEM; 108 return -ENOMEM;
110 } 109 }
111 110
112 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
113 if (!res) {
114 dev_err(&pdev->dev, "Can't get device resources!\n");
115 return -ENOENT;
116 }
117
118 data->clk = devm_clk_get(&pdev->dev, NULL); 111 data->clk = devm_clk_get(&pdev->dev, NULL);
119 if (IS_ERR(data->clk)) { 112 if (IS_ERR(data->clk)) {
120 dev_err(&pdev->dev, 113 dev_err(&pdev->dev,