mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-06-09 08:00:17 -04:00
scsi: drivers: base: Propagate errors through the transport component
The transport registration may fail. Make sure the errors are propagated to the callers. Link: https://lore.kernel.org/r/20200106185817.640331-3-krisman@collabora.com Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
committed by
Martin K. Petersen
parent
7c1ef33870
commit
cd7ea70bb0
@@ -62,16 +62,16 @@ struct transport_container {
|
||||
container_of(x, struct transport_container, ac)
|
||||
|
||||
void transport_remove_device(struct device *);
|
||||
void transport_add_device(struct device *);
|
||||
int transport_add_device(struct device *);
|
||||
void transport_setup_device(struct device *);
|
||||
void transport_configure_device(struct device *);
|
||||
void transport_destroy_device(struct device *);
|
||||
|
||||
static inline void
|
||||
static inline int
|
||||
transport_register_device(struct device *dev)
|
||||
{
|
||||
transport_setup_device(dev);
|
||||
transport_add_device(dev);
|
||||
return transport_add_device(dev);
|
||||
}
|
||||
|
||||
static inline void
|
||||
|
||||
Reference in New Issue
Block a user