summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2013-02-06 09:57:18 +0200
committerFelipe Balbi <balbi@ti.com>2013-03-18 11:17:08 +0200
commitcc5060366b3c8cc20f0f4020a15fa5d39f4dc936 (patch)
tree12530e712eec9f838abec51fcbb86f0434a7d17c
parent6a3b003620f0bd31390422619092fcb87cf1069e (diff)
downloadlinux-cc5060366b3c8cc20f0f4020a15fa5d39f4dc936.tar.gz
linux-cc5060366b3c8cc20f0f4020a15fa5d39f4dc936.tar.bz2
linux-cc5060366b3c8cc20f0f4020a15fa5d39f4dc936.zip
usb: musb: dsps: fix possible compile warning
if CONFIG_OF is disabled, np will be unused and that will give us a compile warning. This patch just avoids it. Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r--drivers/usb/musb/musb_dsps.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/musb/musb_dsps.c b/drivers/usb/musb/musb_dsps.c
index dfaa0241c223..4b4987461adb 100644
--- a/drivers/usb/musb/musb_dsps.c
+++ b/drivers/usb/musb/musb_dsps.c
@@ -597,14 +597,13 @@ err0:
static int dsps_probe(struct platform_device *pdev)
{
- struct device_node *np = pdev->dev.of_node;
const struct of_device_id *match;
const struct dsps_musb_wrapper *wrp;
struct dsps_glue *glue;
struct resource *iomem;
int ret, i;
- match = of_match_node(musb_dsps_of_match, np);
+ match = of_match_node(musb_dsps_of_match, pdev->dev.of_node);
if (!match) {
dev_err(&pdev->dev, "fail to get matching of_match struct\n");
ret = -EINVAL;