pwm: devm: alloc correct pointer size
authorWolfram Sang <wsa@the-dreams.de>
Mon, 3 Jun 2013 20:27:17 +0000 (22:27 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 10 Jun 2013 10:50:10 +0000 (12:50 +0200)
commit77f0b9d2ff0c8ff7b36033dfc5b29dab7a0ebd9a
tree9c8757d3862de107cdd4fc6993550c2a36f37e00
parente7927141ed51d94d6e1267f2ff0362a1f255e007
pwm: devm: alloc correct pointer size

The allocated object should be the size of what the pointer is pointing
to and not the size of the pointer itself.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/core.c