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

Commit 75365d04 authored by Levente Kurusa's avatar Levente Kurusa Committed by Rafael J. Wysocki
Browse files

PNP / card: add missing put_device() call



This is required so that we give up the last reference to the device.

Signed-off-by: default avatarLevente Kurusa <levex@linux.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 249135d1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -239,6 +239,7 @@ int pnp_add_card(struct pnp_card *card)
	error = device_register(&card->dev);
	if (error) {
		dev_err(&card->dev, "could not register (err=%d)\n", error);
		put_device(&card->dev);
		return error;
	}