aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/amd/sunlance.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-11-26 07:54:40 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-11-26 07:54:40 +0100
commita62d2d44902cf1222b5ac41ff1f61167a010cd6b (patch)
treefd3740b483e806c03896a59a6189e5959c899579 /drivers/net/ethernet/amd/sunlance.c
parentf4b614adbf3aceaa4dab034665c379352777de39 (diff)
parent2e6e902d185027f8e3cb8b7305238f7e35d6a436 (diff)
downloadkernel_replicant_linux-a62d2d44902cf1222b5ac41ff1f61167a010cd6b.tar.gz
kernel_replicant_linux-a62d2d44902cf1222b5ac41ff1f61167a010cd6b.tar.bz2
kernel_replicant_linux-a62d2d44902cf1222b5ac41ff1f61167a010cd6b.zip
Merge 4.20-rc4 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/net/ethernet/amd/sunlance.c')
-rw-r--r--drivers/net/ethernet/amd/sunlance.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ethernet/amd/sunlance.c b/drivers/net/ethernet/amd/sunlance.c
index b4fc0ed5bce8..9d4899826823 100644
--- a/drivers/net/ethernet/amd/sunlance.c
+++ b/drivers/net/ethernet/amd/sunlance.c
@@ -1419,7 +1419,7 @@ static int sparc_lance_probe_one(struct platform_device *op,
prop = of_get_property(nd, "tpe-link-test?", NULL);
if (!prop)
- goto no_link_test;
+ goto node_put;
if (strcmp(prop, "true")) {
printk(KERN_NOTICE "SunLance: warning: overriding option "
@@ -1428,6 +1428,8 @@ static int sparc_lance_probe_one(struct platform_device *op,
"to ecd@skynet.be\n");
auxio_set_lte(AUXIO_LTE_ON);
}
+node_put:
+ of_node_put(nd);
no_link_test:
lp->auto_select = 1;
lp->tpe = 0;