]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite99601478a4d1e6b03d968c6108070171bb41e9a
tree9c8757d3862de107cdd4fc6993550c2a36f37e00
parenta0a820ddceb10f478d7abb08cbd79857ac02925f
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