Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 785dabef authored by Fabio Estevam's avatar Fabio Estevam Committed by Greg Kroah-Hartman
Browse files

usb: chipidea: ci13xxx_imx: check if 'data->phy_np' is not NULL



Similarly as it is done in ci13xxx_imx_remove(), only calls of_node_put if
data->phy_np is not NULL.

Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarAlexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e56ae54f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -232,6 +232,7 @@ static int ci13xxx_imx_remove(struct platform_device *pdev)
		module_put(data->phy->dev->driver->owner);
	}

	if (data->phy_np)
		of_node_put(data->phy_np);

	clk_disable_unprepare(data->clk);