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)
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