pwm: devm: alloc correct pointer size
authorWolfram Sang <wsa@the-dreams.de>
Mon, 3 Jun 2013 20:27:17 +0000 (22:27 +0200)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:45:21 +0000 (11:45 +0900)
commitb9ed7ff86b03b8969c795f639d599592ade35cd5
tree96f96b8d4b11957b9c1cc09132f4850d9ebfe21a
parent35d9d161ef305d17f3a27455c81a0c79d3daa795
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