fjes: fix missed check in fjes_acpi_add
authorChuhong Yuan <hslester96@gmail.com>
Mon, 9 Dec 2019 16:22:07 +0000 (00:22 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 4 Jan 2020 12:40:16 +0000 (13:40 +0100)
commit3eb84bcf1a91e5ef6feaf09610cfdff0bd319afb
tree3c0cbf47fbd1b7b58877b4a54396624be71f5ace
parent43c0e119316896fb895f0d059734e4ada480eb71
fjes: fix missed check in fjes_acpi_add

[ Upstream commit a288f105a03a7e0e629a8da2b31f34ebf0343ee2 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/fjes/fjes_main.c