.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * transport_class.h - a generic container for all transport classes |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (c) 2005 - James Bottomley <James.Bottomley@steeleye.com> |
---|
5 | | - * |
---|
6 | | - * This file is licensed under GPLv2 |
---|
7 | 6 | */ |
---|
8 | 7 | |
---|
9 | 8 | #ifndef _TRANSPORT_CLASS_H_ |
---|
.. | .. |
---|
63 | 62 | container_of(x, struct transport_container, ac) |
---|
64 | 63 | |
---|
65 | 64 | void transport_remove_device(struct device *); |
---|
66 | | -void transport_add_device(struct device *); |
---|
| 65 | +int transport_add_device(struct device *); |
---|
67 | 66 | void transport_setup_device(struct device *); |
---|
68 | 67 | void transport_configure_device(struct device *); |
---|
69 | 68 | void transport_destroy_device(struct device *); |
---|
70 | 69 | |
---|
71 | | -static inline void |
---|
| 70 | +static inline int |
---|
72 | 71 | transport_register_device(struct device *dev) |
---|
73 | 72 | { |
---|
74 | 73 | transport_setup_device(dev); |
---|
75 | | - transport_add_device(dev); |
---|
| 74 | + return transport_add_device(dev); |
---|
76 | 75 | } |
---|
77 | 76 | |
---|
78 | 77 | static inline void |
---|