diff options
Diffstat (limited to 'patches/collateral-evolutions/generic/0001-sysfs-api/drivers_bcma.patch')
-rw-r--r-- | patches/collateral-evolutions/generic/0001-sysfs-api/drivers_bcma.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/patches/collateral-evolutions/generic/0001-sysfs-api/drivers_bcma.patch b/patches/collateral-evolutions/generic/0001-sysfs-api/drivers_bcma.patch new file mode 100644 index 00000000..cc3da6fc --- /dev/null +++ b/patches/collateral-evolutions/generic/0001-sysfs-api/drivers_bcma.patch @@ -0,0 +1,35 @@ +--- a/drivers/bcma/main.c ++++ b/drivers/bcma/main.c +@@ -60,7 +60,12 @@ static struct attribute *bcma_device_att + &dev_attr_class.attr, + NULL, + }; ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0) + ATTRIBUTE_GROUPS(bcma_device); ++#else ++#define BP_ATTR_GRP_STRUCT device_attribute ++ATTRIBUTE_GROUPS_BACKPORT(bcma_device); ++#endif + + static struct bus_type bcma_bus_type = { + .name = "bcma", +@@ -68,7 +73,11 @@ static struct bus_type bcma_bus_type = { + .probe = bcma_device_probe, + .remove = bcma_device_remove, + .uevent = bcma_device_uevent, ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,0) + .dev_groups = bcma_device_groups, ++#else ++ .dev_attrs = bcma_device_dev_attrs, ++#endif + }; + + static u16 bcma_cc_core_id(struct bcma_bus *bus) +@@ -482,6 +491,7 @@ static int __init bcma_modinit(void) + { + int err; + ++ init_bcma_device_attrs(); + err = bus_register(&bcma_bus_type); + if (err) + return err; |