hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/include/linux/transport_class.h
....@@ -1,9 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * transport_class.h - a generic container for all transport classes
34 *
45 * Copyright (c) 2005 - James Bottomley <James.Bottomley@steeleye.com>
5
- *
6
- * This file is licensed under GPLv2
76 */
87
98 #ifndef _TRANSPORT_CLASS_H_
....@@ -63,16 +62,16 @@
6362 container_of(x, struct transport_container, ac)
6463
6564 void transport_remove_device(struct device *);
66
-void transport_add_device(struct device *);
65
+int transport_add_device(struct device *);
6766 void transport_setup_device(struct device *);
6867 void transport_configure_device(struct device *);
6968 void transport_destroy_device(struct device *);
7069
71
-static inline void
70
+static inline int
7271 transport_register_device(struct device *dev)
7372 {
7473 transport_setup_device(dev);
75
- transport_add_device(dev);
74
+ return transport_add_device(dev);
7675 }
7776
7877 static inline void