History

scsi: drivers: base: Propagate errors through the transport component

The transport registration may fail. Make sure the errors are propagated to the callers.

Gabriel Krisman Bertazi committed 6 years ago

Commit cd7ea701 parent 7c1ef332 files · +11 −6Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/transport_class.h+3−3
@@ -62,16 +62,16 @@ struct transport_container { · 61 unmodified lines
62 container_of(x, struct transport_container, ac)62 container_of(x, struct transport_container, ac)
63 63
64void transport_remove_device(struct device *);64void transport_remove_device(struct device *);
65void transport_add_device(struct device *);65int transport_add_device(struct device *);
66void transport_setup_device(struct device *);66void transport_setup_device(struct device *);
67void transport_configure_device(struct device *);67void transport_configure_device(struct device *);
68void transport_destroy_device(struct device *);68void transport_destroy_device(struct device *);
69 69
70static inline void70static inline int
71transport_register_device(struct device *dev)71transport_register_device(struct device *dev)
72{72{
73 transport_setup_device(dev);73 transport_setup_device(dev);
74 transport_add_device(dev);74 return transport_add_device(dev);
75}75}
76 76
77static inline void77static inline void