Skip to content

Commit

Permalink
leds: apu: drop iosize field from priv data
Browse files Browse the repository at this point in the history
As this driver now only supports the APU1 boards, we don't need
to handle different io sizes anymore.

Signed-off-by: Enrico Weigelt <[email protected]>
Acked-by: Pavel Machek <[email protected]>
Signed-off-by: Jacek Anaszewski <[email protected]>
  • Loading branch information
metux authored and jacek-anaszewski committed Jul 22, 2019
1 parent da97735 commit 08e8382
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/leds/leds-apu.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ struct apu_led_pdata {
struct apu_led_priv *pled;
const struct apu_led_profile *profile;
int num_led_instances;
int iosize; /* for devm_ioremap() */
spinlock_t lock;
};

Expand Down Expand Up @@ -127,7 +126,7 @@ static int apu_led_config(struct device *dev, struct apu_led_pdata *apuld)
led_cdev->brightness_set = apu1_led_brightness_set;

pled->param.addr = devm_ioremap(dev,
apu_led->profile[i].offset, apu_led->iosize);
apu_led->profile[i].offset, APU1_IOSIZE);
if (!pled->param.addr) {
err = -ENOMEM;
goto error;
Expand Down Expand Up @@ -160,7 +159,6 @@ static int __init apu_led_probe(struct platform_device *pdev)

apu_led->profile = apu1_led_profile;
apu_led->num_led_instances = ARRAY_SIZE(apu1_led_profile);
apu_led->iosize = APU1_IOSIZE;

spin_lock_init(&apu_led->lock);
return apu_led_config(&pdev->dev, apu_led);
Expand Down

0 comments on commit 08e8382

Please sign in to comment.