linux/drivers/input
Julia Lawall ef0aca7f2f Input: keyboard, serio - simplify use of devm_ioremap_resource
Remove unneeded error handling on the result of a call to
platform_get_resource when the value is passed to devm_ioremap_resource.

Move the call to platform_get_resource adjacent to the call to
devm_ioremap_resource to make the connection between them more clear.

A simplified version of the semantic patch that makes this change is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
expression pdev,res,n,e,e1;
expression ret != 0;
identifier l;
@@

- res = platform_get_resource(pdev, IORESOURCE_MEM, n);
  ... when != res
- if (res == NULL) { ... \(goto l;\|return ret;\) }
  ... when != res
+ res = platform_get_resource(pdev, IORESOURCE_MEM, n);
  e = devm_ioremap_resource(e1, res);
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2013-08-15 00:30:17 -07:00
..
gameport Input: remove use of __devexit 2012-11-24 00:05:38 -08:00
joystick Input: joysticks - use dev_get_platdata() 2013-08-12 22:32:30 -07:00
keyboard Input: keyboard, serio - simplify use of devm_ioremap_resource 2013-08-15 00:30:17 -07:00
misc Input: wistron_btns - add MODULE_DEVICE_TABLE 2013-08-13 09:52:17 -07:00
mouse Input: synaptics - fix incorrect placement of __initconst 2013-08-12 22:32:42 -07:00
serio Input: keyboard, serio - simplify use of devm_ioremap_resource 2013-08-15 00:30:17 -07:00
tablet Input: wacom - integrate resolution calculation 2013-08-12 22:31:12 -07:00
touchscreen Input: htcpen - fix incorrect placement of __initdata 2013-08-15 00:30:04 -07:00
apm-power.c Input: random formatting fixes 2012-08-21 22:29:49 -07:00
evbug.c
evdev.c Input: evdev - flush queues during EVIOCGKEY-like ioctls 2013-06-09 22:35:05 -07:00
ff-core.c Input: random formatting fixes 2012-08-21 22:29:49 -07:00
ff-memless.c Input: random formatting fixes 2012-08-21 22:29:49 -07:00
input-compat.c
input-compat.h
input-mt.c Input: MT - handle semi-mt devices in core 2013-04-07 21:02:32 -07:00
input-polldev.c
input.c Input: document that unregistering managed devices is not necessary 2013-01-09 09:07:56 -08:00
joydev.c Input: fix use-after-free introduced with dynamic minor changes 2012-10-22 08:50:37 +03:00
Kconfig Input: add couple of missing GENERIC_HARDIRQS dependencies 2013-02-13 20:21:07 -08:00
Makefile Input: matrix-keymap - uninline and prepare for device tree support 2012-05-10 22:38:47 -07:00
matrix-keymap.c input: Export matrix_keypad_parse_of_params() 2013-04-19 00:31:13 +02:00
mousedev.c Input: mousedev - move /dev/input/mice to the correct minor 2012-11-18 23:15:16 -08:00
sparse-keymap.c Input: random formatting fixes 2012-08-21 22:29:49 -07:00