ehea: Register memory hotplug, reboot and crash hooks on adapter probe
authorAnton Blanchard <anton@samba.org>
Sun, 15 Feb 2015 19:44:20 +0000 (17:44 -0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Feb 2015 21:04:33 +0000 (16:04 -0500)
commitaa183323312dbd1457096b4b94ca274b35fc462b
tree038d8ee3aa283c1fb53edfb9ac8abf9c31de274c
parent1c4cff0cf55011792125b6041bc4e9713e46240f
ehea: Register memory hotplug, reboot and crash hooks on adapter probe

ehea creates memory hotplug, reboot and crash hooks even if there
are no adapters in the box. Just create them when we probe our
first adapter.

[cascardo: use ehea_register_memory_hooks return code]
Signed-off-by: Anton Blanchard <anton@samba.org>
Tested-by: Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ehea/ehea_main.c