1. 01 3月, 2011 1 次提交
  2. 06 8月, 2010 1 次提交
  3. 22 5月, 2010 1 次提交
    • G
      of: Remove duplicate fields from of_platform_driver · 4018294b
      Grant Likely 提交于
      .name, .match_table and .owner are duplicated in both of_platform_driver
      and device_driver.  This patch is a removes the extra copies from struct
      of_platform_driver and converts all users to the device_driver members.
      
      This patch is a pretty mechanical change.  The usage model doesn't change
      and if any drivers have been missed, or if anything has been fixed up
      incorrectly, then it will fail with a compile time error, and the fixup
      will be trivial.  This patch looks big and scary because it touches so
      many files, but it should be pretty safe.
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      Acked-by: NSean MacLennan <smaclennan@pikatech.com>
      4018294b
  4. 19 5月, 2010 1 次提交
  5. 17 11月, 2009 1 次提交
    • S
      net: fix mdio section mismatch warning · f99b4a02
      Stephen Rothwell 提交于
      This fixes the following warning:
      
      WARNING: drivers/net/phy/built-in.o(.devexit.text+0x70): Section mismatch in reference from the function .mdio_gpio_bus_destroy() to the function .devinit.text:.mdio_gpio_bus_deinit()
      The function __devexit .mdio_gpio_bus_destroy() references
      a function __devinit .mdio_gpio_bus_deinit().
      This is often seen when error handling in the exit function
      uses functionality in the init path.
      The fix is often to remove the __devinit annotation of
      .mdio_gpio_bus_deinit() so it may be used outside an init section.
      Signed-off-by: NStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f99b4a02
  6. 15 10月, 2009 1 次提交
  7. 12 9月, 2009 1 次提交
    • J
      drivers/net/phy: introduce missing kfree · a4b11649
      Julia Lawall 提交于
      Error handling code following a kzalloc should free the allocated data.
      
      The semantic match that finds the problem is as follows:
      (http://www.emn.fr/x-info/coccinelle/)
      
      // <smpl>
      @r exists@
      local idexpression x;
      statement S;
      expression E;
      identifier f,f1,l;
      position p1,p2;
      expression *ptr != NULL;
      @@
      
      x@p1 = \(kmalloc\|kzalloc\|kcalloc\)(...);
      ...
      if (x == NULL) S
      <... when != x
           when != if (...) { <+...x...+> }
      (
      x->f1 = E
      |
       (x->f1 == NULL || ...)
      |
       f(...,x->f1,...)
      )
      ...>
      (
       return \(0\|<+...x...+>\|ptr\);
      |
       return@p2 ...;
      )
      
      @script:python@
      p1 << r.p1;
      p2 << r.p2;
      @@
      
      print "* file: %s kmalloc %s return %s" % (p1[0].file,p1[0].line,p2[0].line)
      // </smpl>
      Signed-off-by: NJulia Lawall <julia@diku.dk>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a4b11649
  8. 24 7月, 2009 1 次提交
  9. 11 2月, 2009 1 次提交
  10. 22 1月, 2009 1 次提交
  11. 17 11月, 2008 2 次提交
  12. 09 10月, 2008 2 次提交
  13. 31 5月, 2008 1 次提交