From: Levente Kurusa Date: Thu, 19 Dec 2013 15:03:36 +0000 (+0100) Subject: PNP / card: add missing put_device() call X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=75365d04cd2d6fe04c9c52c69fd97b2d0a6c82ba;p=linux-beck.git PNP / card: add missing put_device() call This is required so that we give up the last reference to the device. Signed-off-by: Levente Kurusa Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/pnp/card.c b/drivers/pnp/card.c index bc00693d0c79..874c236ac1a7 100644 --- a/drivers/pnp/card.c +++ b/drivers/pnp/card.c @@ -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; }