usb: musb: dsps: fix possible compile warning
authorFelipe Balbi <balbi@ti.com>
Wed, 6 Feb 2013 07:57:18 +0000 (09:57 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 18 Mar 2013 09:17:08 +0000 (11:17 +0200)
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>
drivers/usb/musb/musb_dsps.c

index dfaa0241c2230c576858f80001a1339108b1c5d7..4b4987461adb8ffd72c65d8f81db91e7966fff4e 100644 (file)
@@ -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;