diff options
Diffstat (limited to 'kernel/drivers/usb/phy')
-rw-r--r-- | kernel/drivers/usb/phy/phy-am335x-control.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/drivers/usb/phy/phy-am335x-control.c b/kernel/drivers/usb/phy/phy-am335x-control.c index 7b3035ff9..1b4d742a2 100644 --- a/kernel/drivers/usb/phy/phy-am335x-control.c +++ b/kernel/drivers/usb/phy/phy-am335x-control.c @@ -126,10 +126,12 @@ struct phy_control *am335x_get_phy_control(struct device *dev) return NULL; dev = bus_find_device(&platform_bus_type, NULL, node, match); + of_node_put(node); if (!dev) return NULL; ctrl_usb = dev_get_drvdata(dev); + put_device(dev); if (!ctrl_usb) return NULL; return &ctrl_usb->phy_ctrl; |