1. 16 9月, 2012 1 次提交
    • M
      mfd: core: Push irqdomain mapping out into devices · 0848c94f
      Mark Brown 提交于
      Currently the MFD core supports remapping MFD cell interrupts using an
      irqdomain but only if the MFD is being instantiated using device tree
      and only if the device tree bindings use the pattern of registering IPs
      in the device tree with compatible properties.  This will be actively
      harmful for drivers which support non-DT platforms and use this pattern
      for their DT bindings as it will mean that the core will silently change
      remapping behaviour and it is also limiting for drivers which don't do
      DT with this particular pattern.  There is also a potential fragility if
      there are interrupts not associated with MFD cells and all the cells are
      omitted from the device tree for some reason.
      
      Instead change the code to take an IRQ domain as an optional argument,
      allowing drivers to take the decision about the parent domain for their
      interrupts.  The one current user of this feature is ab8500-core, it has
      the domain lookup pushed out into the driver.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
      0848c94f
  2. 01 5月, 2012 1 次提交
    • A
      mfd: Use module_pci_driver · 38a36f5a
      Axel Lin 提交于
      This patch converts the drivers in drivers/mfd/* to use module_pci_driver()
      macro which makes the code smaller and a bit simpler.
      Signed-off-by: NAxel Lin <axel.lin@gmail.com>
      Cc: Andres Salomon <dilinger@queued.net>
      Cc: Ira W. Snyder <iws@ovro.caltech.edu>
      Cc: Florian Fainelli <florian@openwrt.org>
      Cc: Denis Turischev <denis@compulab.co.il>
      Cc: Harald Welte <HaraldWelte@viatech.com>
      Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
      38a36f5a
  3. 09 1月, 2012 2 次提交
    • A
      mfd: Convert to DEFINE_PCI_DEVICE_TABLE · 61485c63
      Axel Lin 提交于
      Convert static struct pci_device_id *[] to static DEFINE_PCI_DEVICE_TABLE
      tables.
      
      Cc: Andres Salomon <dilinger@queued.net>
      Cc: Denis Turischev <denis@compulab.co.il>
      Cc: Ben Dooks <ben@simtec.co.uk>
      Cc: Vincent Sanders <vince@simtec.co.uk>
      Cc: Mocean Laboratories <info@mocean-labs.com>
      Cc: Harald Welte <HaraldWelte@viatech.com>
      Signed-off-by: NAxel Lin <axel.lin@gmail.com>
      Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
      61485c63
    • C
      mfd: Fix cs5535 section mismatch · 97e43c98
      Christian Gmeiner 提交于
      Silence following warnings:
      WARNING: drivers/mfd/cs5535-mfd.o(.data+0x20): Section mismatch in
      reference from the variable cs5535_mfd_drv to the function
      .devinit.text:cs5535_mfd_probe()
      The variable cs5535_mfd_drv references
      the function __devinit cs5535_mfd_probe()
      If the reference is valid then annotate the
      variable with __init* or __refdata (see linux/init.h) or name the variable:
      *driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console
      
      WARNING: drivers/mfd/cs5535-mfd.o(.data+0x28): Section mismatch in
      reference from the variable cs5535_mfd_drv to the function
      .devexit.text:cs5535_mfd_remove()
      The variable cs5535_mfd_drv references
      the function __devexit cs5535_mfd_remove()
      If the reference is valid then annotate the
      variable with __exit* (see linux/init.h) or name the variable:
      *driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console
      
      Rename the variable from *_drv to *_driver so
      modpost ignore the OK references to __devinit/__devexit
      functions.
      Signed-off-by: NChristian Gmeiner <christian.gmeiner@gmail.com>
      Acked-by: NAndres Salomon <dilinger@queued.net>
      Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
      97e43c98
  4. 27 3月, 2011 2 次提交
  5. 23 3月, 2011 1 次提交
    • A
      mfd: Add sharing for cs5535 acpi/pms cells · 1310e6d6
      Andres Salomon 提交于
      This enables sharing of cs5535-mfd cells via the new mfd_shared_* API.
      Hooks for enable/disble of resources are added, with refcounting of
      resources being automatically handled so that cs5535_mfd_res_enable/disable
      are only called when necessary.
      
      Clients of cs5535-mfd (in this case, olpc-xo1.c) are also modified to
      use the mfd_shared API.  The platform drivers are also renamed to
      olpc-xo1-{pms,acpi}, and resource enabling/disabling is replaced
      with mfd_shared API calls.
      Signed-off-by: NAndres Salomon <dilinger@queued.net>
      Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
      1310e6d6
  6. 14 1月, 2011 2 次提交