09 Jan, 2012

2 commits

  • Convert static struct pci_device_id *[] to static DEFINE_PCI_DEVICE_TABLE
    tables.

    Cc: Andres Salomon
    Cc: Denis Turischev
    Cc: Ben Dooks
    Cc: Vincent Sanders
    Cc: Mocean Laboratories
    Cc: Harald Welte
    Signed-off-by: Axel Lin
    Signed-off-by: Samuel Ortiz

    Axel Lin
     
  • 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: Christian Gmeiner
    Acked-by: Andres Salomon
    Signed-off-by: Samuel Ortiz

    Christian Gmeiner
     

27 Mar, 2011

2 commits

  • The cs5535-pms cell doesn't actually need to be cloned, so we can drop that
    and simply have the olpc-xo1.c driver use "cs5535-pms" directly.

    Also, rename the cs5535-acpi clones to what we actually use for the (currently
    out-of-tree) SCI driver. In the process, that fixes a subtle bug in
    olpc-xo1.c which broke powerdown on XO-1s.. olpc-xo1-ac-acpi was a typo, not
    something that actually existed.

    Signed-off-by: Daniel Drake
    Signed-off-by: Andres Salomon
    Signed-off-by: Samuel Ortiz

    Daniel Drake
     
  • Replace mfd_shared_platform_driver_register with mfd_clone_cell. The
    former was called by an mfd client, and registered both a platform driver
    and device. The latter is called by an mfd driver, and registers only a
    platform device.

    The downside of this is that mfd drivers need to be modified whenever
    new clients are added that share a cell; the upside is that it fits
    Linux's driver model better. It's also simpler.

    This also converts cs5535-mfd/olpc-xo1 from the old API. cs5535-mfd
    now creates the olpc-xo1-{acpi,pms} devices, while olpc-xo1 binds to
    them via platform drivers.

    Signed-off-by: Andres Salomon
    Signed-off-by: Samuel Ortiz

    Andres Salomon
     

23 Mar, 2011

1 commit

  • 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: Andres Salomon
    Signed-off-by: Samuel Ortiz

    Andres Salomon
     

14 Jan, 2011

2 commits