fjes: fix missed check in fjes_acpi_add
authorChuhong Yuan <hslester96@gmail.com>
Mon, 9 Dec 2019 16:22:07 +0000 (00:22 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Dec 2019 22:41:25 +0000 (14:41 -0800)
commita288f105a03a7e0e629a8da2b31f34ebf0343ee2
tree52017b80fe868da5df6b8844d2299f97ea37f178
parentb43d1f9f7067c6759b1051e8ecb84e82cef569fe
fjes: fix missed check in fjes_acpi_add

fjes_acpi_add() misses a check for platform_device_register_simple().
Add a check to fix it.

Fixes: 658d439b2292 ("fjes: Introduce FUJITSU Extended Socket Network Device driver")
Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/fjes/fjes_main.c