Merge branch 'for-5.13-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj...
[linux-2.6-microblaze.git] / drivers / leds / leds-bd2802.c
index bd61a82..8bbaef5 100644 (file)
@@ -660,7 +660,6 @@ static int bd2802_probe(struct i2c_client *client,
                        const struct i2c_device_id *id)
 {
        struct bd2802_led *led;
-       struct bd2802_led_platform_data *pdata;
        int ret, i;
 
        led = devm_kzalloc(&client->dev, sizeof(struct bd2802_led), GFP_KERNEL);
@@ -668,7 +667,6 @@ static int bd2802_probe(struct i2c_client *client,
                return -ENOMEM;
 
        led->client = client;
-       pdata = led->pdata = dev_get_platdata(&client->dev);
        i2c_set_clientdata(client, led);
 
        /*