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

Commit 9ca20ebc authored by Krzysztof Helt's avatar Krzysztof Helt Committed by Jeff Garzik
Browse files

3c509: PnP resource management fix



In order to release PnP resources a card type must be set to EL3_PNP.
Previously, it was never set hence the PnP resources were not
released and device was left in incorrect state.

Signed-off-by: default avatarKrzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 5dc16268
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -385,6 +385,7 @@ static int __init el3_probe(int card_idx)
#if defined(__ISAPNP__)
	static int pnp_cards;
	struct pnp_dev *idev = NULL;
	int pnp_found = 0;

	if (nopnp == 1)
		goto no_pnp;
@@ -430,6 +431,7 @@ static int __init el3_probe(int card_idx)
			pnp_cards++;

			netdev_boot_setup_check(dev);
			pnp_found = 1;
			goto found;
		}
	}
@@ -560,6 +562,8 @@ static int __init el3_probe(int card_idx)
	lp = netdev_priv(dev);
#if defined(__ISAPNP__)
	lp->dev = &idev->dev;
	if (pnp_found)
		lp->type = EL3_PNP;
#endif
	err = el3_common_init(dev);