OSDN Git Service

ARM: sa1111: use devm_kzalloc()
authorRussell King <rmk+kernel@armlinux.org.uk>
Tue, 6 Sep 2016 14:29:26 +0000 (15:29 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Tue, 20 Sep 2016 13:21:07 +0000 (14:21 +0100)
commit7d53c1f01210aa79838f1fe34b2a89f8e900d720
tree4ff9964f60a454841d043557a6f4051c42c816cf
parenteac8dbf74f30479b70b9a53f3b24285bd6229d09
ARM: sa1111: use devm_kzalloc()

Use devm_kzalloc() to allocate our driver data, so we can eliminate its
kfree() from the device removal and error cleanup paths.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/common/sa1111.c