alistair23-linux/drivers/fsi
Benjamin Herrenschmidt 265aac26bc fsi: Don't use device_unregister() in fsi_master_register()
In the error path of fsi_master_register(), we currently
use device_unregister(). This will cause the last reference
to the structure to be dropped, thus freeing the enclosing
structure, which isn't what the callers want.

Use device_del() instead so that we return to the caller
with a refcount of 1. The caller can then assume that it
must use put_device() after a call to fsi_master_register()
regardless of whether the latter suceeded or failed.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2018-07-12 12:05:11 +10:00
..
fsi-core.c fsi: Don't use device_unregister() in fsi_master_register() 2018-07-12 12:05:11 +10:00
fsi-master-gpio.c fsi: master-gpio: Remove "GPIO" prefix on some definitions 2018-07-12 12:04:24 +10:00
fsi-master-hub.c fsi: master-hub: Fix sparse warnings 2018-06-18 14:33:56 +10:00
fsi-master.h fsi: Add mechanism to set the tSendDelay and tEchoDelay values 2018-07-12 11:59:13 +10:00
fsi-sbefifo.c fsi: sbefifo: Fix checker warning about late NULL check 2018-07-12 11:53:37 +10:00
fsi-scom.c fsi: scom: Major overhaul 2018-06-18 15:11:53 +10:00
Kconfig fsi/sbefifo: Add dependency on OF_ADDRESS 2018-07-12 11:51:19 +10:00
Makefile fsi/sbefifo: Add driver for the SBE FIFO 2018-06-12 14:05:39 +10:00