Merge tag '5.20-rc-smb3-client-fixes-part2' of git://git.samba.org/sfrench/cifs-2.6
[linux-2.6-microblaze.git] / drivers / leds / leds-turris-omnia.c
index 1adfed1..eac6f4a 100644 (file)
@@ -239,9 +239,6 @@ static int omnia_leds_probe(struct i2c_client *client,
                led += ret;
        }
 
-       if (devm_device_add_groups(dev, omnia_led_controller_groups))
-               dev_warn(dev, "Could not add attribute group!\n");
-
        return 0;
 }
 
@@ -283,6 +280,7 @@ static struct i2c_driver omnia_leds_driver = {
        .driver         = {
                .name   = "leds-turris-omnia",
                .of_match_table = of_omnia_leds_match,
+               .dev_groups = omnia_led_controller_groups,
        },
 };