From: Benjamin Tissoires Date: Wed, 24 Jul 2013 17:38:05 +0000 (+0200) Subject: HID: multitouch: devm conversion X-Git-Tag: v3.12-rc1~125^2~1^4~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c08d46aa805ba46d501f610c2448d07bea979780;p=pandora-kernel.git HID: multitouch: devm conversion HID special drivers can use safely the devres API. Use it to remove 25 lines of code and to clean up a little the error paths. Besides the basic kzalloc -> devm_kzalloc conversions, I changed the place of the allocation of the new name. Doing this right in mt_input_configured() removes the kstrdup call which was not very helpful and the new way is simpler to understand (and to debug). Reviewed-by: Andy Shevchenko Signed-off-by: Benjamin Tissoires Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed