1. 13 Jan, 2019 1 commit
  2. 23 Oct, 2018 1 commit
    • Johan Hovold's avatar
      power: supply: twl4030-charger: fix OF sibling-node lookup · 9844fb2e
      Johan Hovold authored
      Use the new of_get_compatible_child() helper to lookup the usb sibling
      node instead of using of_find_compatible_node(), which searches the
      entire tree from a given start node and thus can return an unrelated
      (non-sibling) node.
      
      This also addresses a potential use-after-free (e.g. after probe
      deferral) as the tree-wide helper drops a reference to its first
      argument (i.e. the parent device node).
      
      While at it, also fix the related phy-node reference leak.
      
      Fixes: f5e4edb8 ("power: twl4030_charger: find associated phy by more reliable means.")
      Cc: stable <stable@vger.kernel.org>     # 4.2
      Cc: NeilBrown <neilb@suse.de>
      Cc: Felipe Balbi <felipe.balbi@linux.intel.com>
      Cc: Sebastian Reichel <sre@kernel.org>
      Reviewed-by: default avatarSebastian Reichel <sre@kernel.org>
      Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
      Signed-off-by: Rob Herring's avatarRob Herring <robh@kernel.org>
      9844fb2e
  3. 21 Oct, 2018 2 commits
  4. 20 Sep, 2018 5 commits
  5. 18 Sep, 2018 1 commit
  6. 16 Sep, 2018 15 commits
  7. 29 Aug, 2018 3 commits
  8. 24 Aug, 2018 1 commit
  9. 24 Jul, 2018 1 commit
  10. 22 Jul, 2018 4 commits
  11. 11 Jul, 2018 3 commits
  12. 07 Jul, 2018 1 commit
    • Randy Dunlap's avatar
      headers: separate linux/mod_devicetable.h from linux/platform_device.h · ac316725
      Randy Dunlap authored
      At over 4000 #includes, <linux/platform_device.h> is the 9th most
      #included header file in the Linux kernel.  It does not need
      <linux/mod_devicetable.h>, so drop that header and explicitly add
      <linux/mod_devicetable.h> to source files that need it.
      
         4146 #include <linux/platform_device.h>
      
      After this patch, there are 225 files that use <linux/mod_devicetable.h>,
      for a reduction of around 3900 times that <linux/mod_devicetable.h>
      does not have to be read & parsed.
      
          225 #include <linux/mod_devicetable.h>
      
      This patch was build-tested on 20 different arch-es.
      
      It also makes these drivers SubmitChecklist#1 compliant.
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Reported-by: kbuild test robot <lkp@intel.com> # drivers/media/platform/vimc/
      Reported-by: kbuild test robot <lkp@intel.com> # drivers/pinctrl/pinctrl-u300.c
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      ac316725
  13. 06 Jul, 2018 2 commits