1. 01 3月, 2013 1 次提交
  2. 04 2月, 2013 1 次提交
  3. 30 1月, 2013 1 次提交
  4. 04 1月, 2013 1 次提交
    • G
      Drivers: regulator: remove __dev* attributes. · 3d68dfe3
      Greg Kroah-Hartman 提交于
      CONFIG_HOTPLUG is going away as an option.  As a result, the __dev*
      markings need to be removed.
      
      This change removes the use of __devinit, __devexit_p, __devinitdata,
      __devinitconst, and __devexit from these drivers.
      
      Based on patches originally written by Bill Pemberton, but redone by me
      in order to handle some of the coding style issues better, by hand.
      
      Cc: Bill Pemberton <wfp5p@virginia.edu>
      Cc: Liam Girdwood <lrg@ti.com>
      Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      3d68dfe3
  5. 06 12月, 2012 2 次提交
  6. 28 11月, 2012 1 次提交
  7. 20 11月, 2012 3 次提交
  8. 19 11月, 2012 1 次提交
  9. 24 9月, 2012 1 次提交
  10. 29 8月, 2012 1 次提交
  11. 08 8月, 2012 4 次提交
  12. 17 7月, 2012 1 次提交
  13. 23 6月, 2012 1 次提交
  14. 08 6月, 2012 2 次提交
  15. 04 6月, 2012 1 次提交
    • A
      regulator: palmas: Fix wrong kfree calls · c71c8fd4
      Axel Lin 提交于
      The devm_kzalloc function eliminates the need for manual resource releasing
      and simplify error handling. Resources allocated by devm_* are freed
      automatically on driver detach.
      
      Thus adding kfree calls here will introduce double free bug.
      
      The memory of desc array and the pointers to the rdev[] are allocated by
      devm_kzalloc call for struct palmas_pmic.
      
      struct palmas_pmic {
              struct palmas *palmas;
              struct device *dev;
              struct regulator_desc desc[PALMAS_NUM_REGS];
              struct regulator_dev *rdev[PALMAS_NUM_REGS];
              struct mutex mutex;
      
              int smps123;
              int smps457;
      
              int range[PALMAS_REG_SMPS10];
      };
      
      Which means we should not call kfree for pmic->rdev and pmic->desc.
      Signed-off-by: NAxel Lin <axel.lin@gmail.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      c71c8fd4
  16. 03 6月, 2012 1 次提交
  17. 19 5月, 2012 1 次提交