9
0
Fork 0

PWM: pxa: use pwmx as devname

As this changes the name of the pwm we also have to adjust it in
pwm_request.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2014-02-13 10:26:24 +01:00
parent 5da563f1e6
commit 72141fa925
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ static void mioa701_lcd_power(int on)
static void mioa701_lcd_backlight(int on)
{
struct pwm_device *pwm0 = pwm_request("pxa_pwm0");
struct pwm_device *pwm0 = pwm_request("pwm0");
/*
* The backlight has a base frequency of 250kHz (<=> 4 ms).

View File

@ -133,7 +133,7 @@ static int pxa_pwm_probe(struct device_d *dev)
struct pxa_pwm_chip *chip;
chip = xzalloc(sizeof(*chip));
chip->chip.devname = asprintf("%s", dev_name(dev));
chip->chip.devname = asprintf("pwm%d", dev->id);
chip->chip.ops = &pxa_pwm_ops;
chip->iobase = dev_request_mem_region(dev, 0);
chip->id = dev->id;