1. 29 8月, 2017 1 次提交
  2. 05 10月, 2016 1 次提交
    • P
      MIPS: pci: Audit and remove any unnecessary uses of module.h · 2722090a
      Paul Gortmaker 提交于
      Historically a lot of these existed because we did not have
      a distinction between what was modular code and what was providing
      support to modules via EXPORT_SYMBOL and friends.  That changed
      when we forked out support for the latter into the export.h file.
      
      This means we should be able to reduce the usage of module.h
      in code that is obj-y Makefile or bool Kconfig.  The advantage
      in doing so is that module.h itself sources about 15 other headers;
      adding significantly to what we feed cpp, and it can obscure what
      headers we are effectively using.
      
      Since module.h was the source for init.h (for __init) and for
      export.h (for EXPORT_SYMBOL) we consider each obj-y/bool instance
      for the presence of either and replace as needed.
      
      We also needed to remove the no-op MODULE_DEVICE_TABLE usage in
      several instances to permit removal of the module.h include.  The
      files in these instances were all controlled by bool Kconfig.
      
      In one instance, module_param was being used so we transition the
      module.h include onto a moduleparam.h include.
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Cc: linux-mips@linux-mips.org
      Patchwork: https://patchwork.linux-mips.org/patch/14035/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      2722090a
  3. 11 11月, 2015 1 次提交
    • J
      MIPS: pci-rt3883: drop unneeded of_node_get · 972cfd55
      Julia Lawall 提交于
      for_each_child_of_node performs an of_node_get on each iteration, so no
      of_node_get is needed on breaking out of the loop when the device_node
      structure is saved in another variable.
      
      A simplified semantic match that finds this problem is as follows
      (http://coccinelle.lip6.fr):
      
      // <smpl>
      @@
      expression root;
      local idexpression child;
      @@
      
       for_each_child_of_node(root, child) {
         ...
      *  of_node_get(child)
         ...
         break;
       }
      // </smpl>
      Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr>
      Cc: kernel-janitors@vger.kernel.org
      Cc: linux-mips@linux-mips.org
      Cc: linux-kernel@vger.kernel.org
      Cc: Russell King - ARM Linux <linux@arm.linux.org.uk>
      Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
      Cc: Andrew Lunn <andrew@lunn.ch>
      Cc: Bjorn Helgaas <bhelgaas@google.com>
      Cc: Jason Cooper <jason@lakedaemon.net>
      Patchwork: https://patchwork.linux-mips.org/patch/11357/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      972cfd55
  4. 16 9月, 2015 1 次提交
    • T
      genirq: Remove irq argument from irq flow handlers · bd0b9ac4
      Thomas Gleixner 提交于
      Most interrupt flow handlers do not use the irq argument. Those few
      which use it can retrieve the irq number from the irq descriptor.
      
      Remove the argument.
      
      Search and replace was done with coccinelle and some extra helper
      scripts around it. Thanks to Julia for her help!
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Cc: Julia Lawall <Julia.Lawall@lip6.fr>
      Cc: Jiang Liu <jiang.liu@linux.intel.com>
      bd0b9ac4
  5. 26 8月, 2015 2 次提交
  6. 22 6月, 2015 1 次提交
    • J
      MIPS, IRQ: Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc · 25aae561
      Jiang Liu 提交于
      Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc while we
      already have a pointer to corresponding irq_desc.
      Signed-off-by: NJiang Liu <jiang.liu@linux.intel.com>
      Acked-by: NSergey Ryazanov <ryazanov.s.a@gmail.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Bjorn Helgaas <bhelgaas@google.com>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: H. Peter Anvin <hpa@zytor.com>
      Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
      Cc: Randy Dunlap <rdunlap@infradead.org>
      Cc: Yinghai Lu <yinghai@kernel.org>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: Aleksey Makarov <aleksey.makarov@auriga.com>
      Cc: David Daney <david.daney@cavium.com>
      Cc: Christoph Lameter <cl@linux.com>
      Cc: John Crispin <blogic@openwrt.org>
      Cc: Andrew Bresticker <abrestic@chromium.org>
      Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      Cc: Tony Luck <tony.luck@intel.com>
      Cc: x86@kernel.org
      Cc: linux-kernel@vger.kernel.org
      Cc: linux-pci@vger.kernel.org
      Cc: linux-acpi@vger.kernel.org
      Cc: linux-mips@linux-mips.org
      Patchwork: https://patchwork.linux-mips.org/patch/10086/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      25aae561
  7. 24 11月, 2014 1 次提交
  8. 20 10月, 2014 1 次提交
  9. 25 1月, 2014 1 次提交
  10. 24 10月, 2013 4 次提交
  11. 05 9月, 2013 1 次提交