--- a/net/bluetooth/hci_sysfs.c +++ b/net/bluetooth/hci_sysfs.c @@ -72,7 +72,11 @@ static struct attribute_group bt_link_gr .attrs = bt_link_attrs, }; +#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,31)) static const struct attribute_group *bt_link_groups[] = { +#else +static struct attribute_group *bt_link_groups[] = { +#endif &bt_link_group, NULL }; @@ -378,7 +382,11 @@ static struct attribute_group bt_host_gr .attrs = bt_host_attrs, }; +#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,31)) static const struct attribute_group *bt_host_groups[] = { +#else +static struct attribute_group *bt_host_groups[] = { +#endif &bt_host_group, NULL };