From: Greg Kroah-Hartman Date: Mon, 29 Oct 2018 15:32:31 +0000 (+0100) Subject: driver core: remove BUS_ATTR() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=cd1b772d4881d1cd15b90ec17aab9ac7950e8850;p=linux.git 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" Signed-off-by: Greg Kroah-Hartman --- diff --git a/include/linux/device.h b/include/linux/device.h index b425a7ee04ce4..4e6987e11f688 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -49,8 +49,6 @@ struct bus_attribute { ssize_t (*store)(struct bus_type *bus, const char *buf, size_t count); }; -#define BUS_ATTR(_name, _mode, _show, _store) \ - struct bus_attribute bus_attr_##_name = __ATTR(_name, _mode, _show, _store) #define BUS_ATTR_RW(_name) \ struct bus_attribute bus_attr_##_name = __ATTR_RW(_name) #define BUS_ATTR_RO(_name) \