ACPI / dock: fix error return code in dock_add()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 17 Jul 2013 00:33:25 +0000 (08:33 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 25 Jul 2013 22:34:00 +0000 (00:34 +0200)
commit0177f29fea534ef5e6af2d76e9a9be0fdd325c4d
treee1a7db8e94217cf39cb5c9193305f0149fd3f6c9
parent2efbca4dfc7b43951de6dd1647f9eebda9d4372b
ACPI / dock: fix error return code in dock_add()

Fix to return -ENODEV in the acpi notify handler install error
handling case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/dock.c