提交 75365d04 编写于 作者: L Levente Kurusa 提交者: Rafael J. Wysocki

PNP / card: add missing put_device() call

This is required so that we give up the last reference to the device.
Signed-off-by: NLevente Kurusa <levex@linux.com>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 249135d1
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册