diff options
author | Benjamin Tissoires <benjamin.tissoires@redhat.com> | 2013-07-24 21:38:05 +0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-07-31 12:13:15 +0400 |
commit | c08d46aa805ba46d501f610c2448d07bea979780 (patch) | |
tree | e4764c97f9a235688f9012787a6f8a24f5af1de0 /fs/block_dev.c | |
parent | abf832bfc349b54fd500f1e3b612f7f3cd9dfcc6 (diff) | |
download | linux-c08d46aa805ba46d501f610c2448d07bea979780.tar.xz |
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 <andy.shevchenko@gmail.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'fs/block_dev.c')
0 files changed, 0 insertions, 0 deletions