Commit cc506036 authored by Felipe Balbi's avatar Felipe Balbi
Browse files

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: default avatarFelipe Balbi <balbi@ti.com>
parent 6a3b0036
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -597,14 +597,13 @@ static int dsps_create_musb_pdev(struct dsps_glue *glue, u8 id)

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;