1. 18 11月, 2013 3 次提交
  2. 12 7月, 2013 2 次提交
  3. 26 1月, 2013 1 次提交
  4. 29 11月, 2012 3 次提交
  5. 28 3月, 2012 2 次提交
  6. 27 1月, 2012 1 次提交
    • J
      watchdog: dw_wdt.c: use devm_request_and_ioremap · 52ea9a7d
      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: NWim Van Sebroeck <wim@iguana.be>
      52ea9a7d
  7. 06 1月, 2012 1 次提交
    • A
      watchdog: convert drivers/watchdog/* to use module_platform_driver() · b8ec6118
      Axel Lin 提交于
      This patch converts the drivers in drivers/watchdog/* to use the
      module_platform_driver() macro which makes the code smaller and a bit
      simpler.
      Signed-off-by: NAxel Lin <axel.lin@gmail.com>
      Cc: Nicolas Thill <nico@openwrt.org>
      Cc: Florian Fainelli <florian@openwrt.org>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Paul Cercueil <paul@crapouillou.net>
      Cc: Marc Zyngier <maz@misterjones.org>
      Cc: Wan ZongShun <mcuos.com@gmail.com>
      Cc: Alejandro Cabrera <aldaya@gmail.com>
      Cc: "George G. Davis" <gdavis@mvista.com>
      Cc: Sylver Bruneau <sylver.bruneau@googlemail.com>
      Cc: Vitaly Wool <vital@embeddedalley.com>
      Cc: Mika Westerberg <mika.westerberg@iki.fi>
      Cc: Timo Kokkonen <timo.t.kokkonen@nokia.com>
      Signed-off-by: NWim Van Sebroeck <wim@iguana.be>
      b8ec6118
  8. 22 7月, 2011 1 次提交