summaryrefslogtreecommitdiffstats
path: root/drivers/ide/pmac.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-12-10 10:19:08 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-12-10 10:19:08 +0100
commitb53bde6686fb6952f560e82c5b6c529966d205a4 (patch)
tree7b456d091455d26b2d4be128abba1c115dfece35 /drivers/ide/pmac.c
parente67ebf1b3815b2d1fc505dba182761c0be6c179d (diff)
parent40e020c129cfc991e8ab4736d2665351ffd1468d (diff)
downloadlinux-b53bde6686fb6952f560e82c5b6c529966d205a4.tar.bz2
Merge 4.20-rc6 into usb-next
We want the USB fixes in here as well. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/ide/pmac.c')
-rw-r--r--drivers/ide/pmac.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ide/pmac.c b/drivers/ide/pmac.c
index c5b902b86b44..203ed4adc04a 100644
--- a/drivers/ide/pmac.c
+++ b/drivers/ide/pmac.c
@@ -920,6 +920,7 @@ static u8 pmac_ide_cable_detect(ide_hwif_t *hwif)
struct device_node *root = of_find_node_by_path("/");
const char *model = of_get_property(root, "model", NULL);
+ of_node_put(root);
/* Get cable type from device-tree. */
if (cable && !strncmp(cable, "80-", 3)) {
/* Some drives fail to detect 80c cable in PowerBook */