linux/drivers/pinctrl
Julia Lawall 690ebabb0b pinctrl: nomadik: 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>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2013-08-15 22:12:47 +02:00
..
mvebu pinctrl: dove: add PMU functions to pinctrl 2013-06-16 11:56:49 +02:00
sh-pfc sh-pfc: r8a7790: Add DU pin groups and functions 2013-08-14 22:49:22 +02:00
sirf pinctrl: sirf: add missing __iomem annotation 2013-08-07 22:30:40 +02:00
spear pinctrl: spear/plgpio: Staticize spear310_o2p 2013-06-18 16:52:37 +02:00
vt8500 pinctrl: vt8500: wmt: remove redundant dev_err call in wmt_pinctrl_probe() 2013-06-27 11:51:51 +02:00
core.c pinctrl: Remove duplicate code in pinctrl_pm_select_state functions 2013-07-23 01:23:27 +02:00
core.h pinctrl: move subsystem mutex to pinctrl_dev struct 2013-04-26 17:01:35 +02:00
devicetree.c pinctrl: move subsystem mutex to pinctrl_dev struct 2013-04-26 17:01:35 +02:00
devicetree.h
Kconfig pinctrl: palmas: add pincontrol driver 2013-08-14 21:00:42 +02:00
Makefile pinctrl: palmas: add pincontrol driver 2013-08-14 21:00:42 +02:00
pinconf-generic.c pinctrl: pinconf-generic: add generic APIs for mapping pinctrl node 2013-08-14 21:00:41 +02:00
pinconf.c pinctrl: pinconf: fix comparison of different types 2013-08-07 22:30:32 +02:00
pinconf.h pinctrl: add function to parse generic pinconfig properties from a dt node 2013-06-16 11:57:32 +02:00
pinctrl-ab8500.c
pinctrl-ab8505.c pinctrl: ab8505: Staticize some symbols 2013-04-09 09:59:42 +02:00
pinctrl-ab8540.c
pinctrl-ab9540.c
pinctrl-abx500.c pinctrl: abx500: rework error path 2013-06-24 15:20:32 +02:00
pinctrl-abx500.h
pinctrl-at91.c pinctrl: at91: choose appropriate handler for level interrupts 2013-08-07 22:30:16 +02:00
pinctrl-baytrail.c pinctrl-baytrail: fix to avoid sparse warnings 2013-07-23 01:23:27 +02:00
pinctrl-bcm2835.c pinctrl: bcm2835: Staticize bcm2835_gpio_pins 2013-06-18 16:50:27 +02:00
pinctrl-coh901.c Pin control changes for the v3.11 kernel cycle: 2013-07-03 11:48:03 -07:00
pinctrl-coh901.h
pinctrl-exynos5440.c pinctrl: exynos5440: fix issues reported by prevent tool 2013-06-16 11:56:52 +02:00
pinctrl-exynos.c Pin control changes for the v3.11 kernel cycle: 2013-07-03 11:48:03 -07:00
pinctrl-exynos.h pinctrl: exynos: Handle suspend/resume of GPIO EINT registers 2013-05-27 15:37:09 +02:00
pinctrl-falcon.c pinctrl/lantiq: add missing pin definition to falcon pinctrl driver 2013-08-14 22:49:24 +02:00
pinctrl-imx6dl.c pinctrl: add pinctrl driver for imx6dl 2013-04-09 22:53:38 +08:00
pinctrl-imx6q.c pinctrl: imx: move hard-coding data into device tree 2013-04-09 22:52:50 +08:00
pinctrl-imx6sl.c pinctrl: add pinctrl driver for imx6sl 2013-04-09 22:53:38 +08:00
pinctrl-imx23.c
pinctrl-imx28.c
pinctrl-imx35.c pinctrl: imx: move hard-coding data into device tree 2013-04-09 22:52:50 +08:00
pinctrl-imx51.c pinctrl: imx: move hard-coding data into device tree 2013-04-09 22:52:50 +08:00
pinctrl-imx53.c pinctrl: imx: move hard-coding data into device tree 2013-04-09 22:52:50 +08:00
pinctrl-imx.c pinctrl: imx: work around select input quirk 2013-08-07 22:29:48 +02:00
pinctrl-imx.h pinctrl: imx: add VF610 support to imx pinctrl framework 2013-06-16 11:56:51 +02:00
pinctrl-lantiq.c pinctrl/lantiq: Free mapping configs for both pin and groups 2013-05-15 13:28:46 +02:00
pinctrl-lantiq.h
pinctrl-mxs.c pinctrl: mxs: remove unnecessary platform_set_drvdata() 2013-06-16 11:56:48 +02:00
pinctrl-mxs.h
pinctrl-nomadik-db8500.c
pinctrl-nomadik-db8540.c
pinctrl-nomadik-stn8815.c
pinctrl-nomadik.c pinctrl: nomadik: simplify use of devm_ioremap_resource 2013-08-15 22:12:47 +02:00
pinctrl-nomadik.h
pinctrl-palmas.c pinctrl: palmas: add pincontrol driver 2013-08-14 21:00:42 +02:00
pinctrl-rockchip.c drivers/pinctrl: don't check resource with devm_ioremap_resource 2013-08-07 22:29:21 +02:00
pinctrl-s3c24xx.c pinctrl: s3c24xx: use correct header for chained_irq functions 2013-06-19 02:41:20 +09:00
pinctrl-s3c64xx.c pinctrl: s3c64xx: Fix build error caused by undefined chained_irq_enter 2013-04-23 13:59:45 +02:00
pinctrl-samsung.c Pin control changes for the v3.11 kernel cycle: 2013-07-03 11:48:03 -07:00
pinctrl-samsung.h ARM SoC late changes 2013-07-02 14:42:51 -07:00
pinctrl-single.c pinctrl: single: adopt pinctrl sleep mode management 2013-06-17 18:18:34 +02:00
pinctrl-st.c pinctrl: st: Staticize local symbols 2013-08-07 22:30:06 +02:00
pinctrl-sunxi-pins.h pinctrl: sunxi: Add Allwinner A10s pins 2013-06-17 18:18:33 +02:00
pinctrl-sunxi.c pinctrl: sunxi: Fix incorrect NULL check 2013-08-07 22:29:39 +02:00
pinctrl-sunxi.h pinctrl: sunxi: Add external interrupts support 2013-06-16 11:57:31 +02:00
pinctrl-tegra20.c
pinctrl-tegra30.c
pinctrl-tegra114.c
pinctrl-tegra.c
pinctrl-tegra.h
pinctrl-tz1090-pdc.c pinctrl: remove slew-rate parameter from tz1090 2013-06-25 15:34:49 +02:00
pinctrl-tz1090.c pinctrl: remove slew-rate parameter from tz1090 2013-06-25 15:34:49 +02:00
pinctrl-u300.c drivers/pinctrl: don't check resource with devm_ioremap_resource 2013-08-07 22:29:21 +02:00
pinctrl-utils.c pinctrl: add utility functions for add map/configs 2013-08-14 21:00:41 +02:00
pinctrl-utils.h pinctrl: add utility functions for add map/configs 2013-08-14 21:00:41 +02:00
pinctrl-vf610.c pinctrl: add VF610 pinctrl driver 2013-06-16 11:56:51 +02:00
pinctrl-xway.c pinctrl/lantiq: add missing gphy led setup 2013-08-14 22:49:24 +02:00
pinmux.c pinctrl: improve warning messages 2013-08-14 22:49:14 +02:00
pinmux.h