EISA: Call put_device() if device_register() fails
authorLevente Kurusa <levex@linux.com>
Fri, 13 Dec 2013 18:39:54 +0000 (19:39 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 13 Dec 2013 19:00:42 +0000 (12:00 -0700)
commit04df008afe0c569fd09400a35b7d3db29067114c
tree19053ca6c50a060c7bed4abf3b91e1c6e169ee8d
parent6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae
EISA: Call put_device() if device_register() fails

We need to give up the last reference to edev->dev, so we need to call
put_device().

Signed-off-by: Levente Kurusa <levex@linux.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/eisa/eisa-bus.c