1. 02 1月, 2012 1 次提交
    • J
      drivers/gpio/gpio-tegra.c: use devm_request_and_ioremap · aedd4fdf
      Julia Lawall 提交于
      Reimplement a call to devm_request_mem_region followed by a call to ioremap
      or ioremap_nocache by a call to devm_request_and_ioremap.
      
      The semantic patch that makes this transformation is as follows:
      (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @nm@
      expression myname;
      identifier i;
      @@
      
      struct platform_driver i = { .driver = { .name = myname } };
      
      @@
      expression dev,res,size;
      expression nm.myname;
      @@
      
      -if (!devm_request_mem_region(dev, res->start, size,
      -                              \(res->name\|dev_name(dev)\|myname\))) {
      -   ...
      -   return ...;
      -}
      ... when != res->start
      (
      -devm_ioremap(dev,res->start,size)
      +devm_request_and_ioremap(dev,res)
      |
      -devm_ioremap_nocache(dev,res->start,size)
      +devm_request_and_ioremap(dev,res)
      )
      ... when any
          when != res->start
      // </smpl>
      Signed-off-by: NJulia Lawall <julia@diku.dk>
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      aedd4fdf
  2. 14 10月, 2011 1 次提交
  3. 27 9月, 2011 1 次提交
  4. 24 8月, 2011 2 次提交
  5. 06 7月, 2011 1 次提交
  6. 16 6月, 2011 2 次提交
  7. 11 5月, 2011 1 次提交
  8. 31 3月, 2011 1 次提交
  9. 29 3月, 2011 4 次提交
  10. 23 2月, 2011 1 次提交
  11. 10 2月, 2011 1 次提交
  12. 27 1月, 2011 1 次提交
  13. 14 1月, 2011 1 次提交
  14. 22 10月, 2010 1 次提交
  15. 06 8月, 2010 1 次提交
    • E
      [ARM] tegra: add GPIO support · 3c92db9a
      Erik Gilling 提交于
      v2: fixes from Mike Rapoport:
      	- move gpio-names.h to arch/arm/mach-tegra
          fixes from Russell King
      	- include linux/io.h and linux/gpio.h instead of asm/io.h
      	  and asm/gpio.h
          additional changes:
          	- add macros to convert between irq and gpio numbers for platform data
      	- change for_each_bit to for_each_set_bit in gpio.c
      v3:
      	- minor bugfixes
      Signed-off-by: NColin Cross <ccross@android.com>
      Signed-off-by: NErik Gilling <konkers@android.com>
      3c92db9a