X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=include%2Flinux%2Ftransport_class.h;h=eaec1ea9558ee6aa8267050a212267f3394dcc4a;hb=654c8e0b1c623b156c5b92f28d914ab38c9c2c90;hp=1d6cc22e5f42a49ab4e42a3db982c8b4a9107f04;hpb=5a2cec83a9bb1b4295aa8ab728fcb8ca1811a33c;p=linux-2.6-omap-h63xx.git diff --git a/include/linux/transport_class.h b/include/linux/transport_class.h index 1d6cc22e5f4..eaec1ea9558 100644 --- a/include/linux/transport_class.h +++ b/include/linux/transport_class.h @@ -17,11 +17,11 @@ struct transport_container; struct transport_class { struct class class; int (*setup)(struct transport_container *, struct device *, - struct class_device *); + struct device *); int (*configure)(struct transport_container *, struct device *, - struct class_device *); + struct device *); int (*remove)(struct transport_container *, struct device *, - struct class_device *); + struct device *); }; #define DECLARE_TRANSPORT_CLASS(cls, nm, su, rm, cfg) \ @@ -86,9 +86,10 @@ static inline int transport_container_register(struct transport_container *tc) return attribute_container_register(&tc->ac); } -static inline int transport_container_unregister(struct transport_container *tc) +static inline void transport_container_unregister(struct transport_container *tc) { - return attribute_container_unregister(&tc->ac); + if (unlikely(attribute_container_unregister(&tc->ac))) + BUG(); } int transport_class_register(struct transport_class *);