Skip to content

Commit cd1b772

Browse files
committed
driver core: remove BUS_ATTR()
There are now no in-kernel users of BUS_ATTR() so drop it from device.h Everyone should use BUS_ATTR_RO/RW/WO() from now on. Cc: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 9e98c67 commit cd1b772

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

include/linux/device.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ struct bus_attribute {
4949
ssize_t (*store)(struct bus_type *bus, const char *buf, size_t count);
5050
};
5151

52-
#define BUS_ATTR(_name, _mode, _show, _store) \
53-
struct bus_attribute bus_attr_##_name = __ATTR(_name, _mode, _show, _store)
5452
#define BUS_ATTR_RW(_name) \
5553
struct bus_attribute bus_attr_##_name = __ATTR_RW(_name)
5654
#define BUS_ATTR_RO(_name) \

0 commit comments

Comments
 (0)