1. 26 Aug, 2013 14 commits
    • Rafael J. Wysocki's avatar
      Merge branch 'pm-cpuidle' · c7878810
      Rafael J. Wysocki authored
      * pm-cpuidle: (25 commits)
        cpuidle: Change struct menu_device field types
        cpuidle: Add a comment warning about possible overflow
        cpuidle: Fix variable domains in get_typical_interval()
        cpuidle: Fix menu_device->intervals type
        cpuidle: CodingStyle: Break up multiple assignments on single line
        cpuidle: Check called function parameter in get_typical_interval()
        cpuidle: Rearrange code and comments in get_typical_interval()
        cpuidle: Ignore interval prediction result when timer is shorter
        cpuidle-kirkwood.c: simplify use of devm_ioremap_resource()
        cpuidle: kirkwood: Make kirkwood_cpuidle_remove function static
        cpuidle: calxeda: Add missing __iomem annotation
        SH: cpuidle: Add missing parameter for cpuidle_register()
        ARM: ux500: cpuidle: Move ux500 cpuidle driver to drivers/cpuidle
        ARM: ux500: cpuidle: Remove pointless include
        ARM: ux500: cpuidle: Instantiate the driver from platform device
        ARM: davinci: cpuidle: Fix target residency
        cpuidle: Add Kconfig.arm and move calxeda, kirkwood and zynq
        cpuidle: Check if device is already registered
        cpuidle: Introduce __cpuidle_device_init()
        cpuidle: Introduce __cpuidle_unregister_device()
        ...
      c7878810
    • Rafael J. Wysocki's avatar
      Merge branch 'pm-opp' · 95b6fcb0
      Rafael J. Wysocki authored
      * pm-opp:
        PM / OPP: Export opp_add()
      95b6fcb0
    • Rafael J. Wysocki's avatar
      Merge branch 'pm-sleep' · e894245c
      Rafael J. Wysocki authored
      * pm-sleep:
        PM / Sleep: new trace event to print device suspend and resume times
        PM / Sleep: increase ftrace coverage in suspend/resume
      e894245c
    • Rafael J. Wysocki's avatar
      Merge branch 'pnp' · ce63e186
      Rafael J. Wysocki authored
      * pnp:
        PNP: convert PNP driver bus legacy pm_ops to dev_pm_ops
      ce63e186
    • Rafael J. Wysocki's avatar
      Merge branch 'acpi-video' · 8a3a53ea
      Rafael J. Wysocki authored
      * acpi-video:
        ACPI: blacklist win8 OSI for buggy laptops
        ACPI: blacklist win8 OSI for ASUS Zenbook Prime UX31A
        ACPI / video: drop unused fields from struct acpi_video_brightness_flags
        ACPI / video: remove unnecessary type casting
        ACPI / video: trivial style cleanups
        ACPI / video: trivial costmetic cleanups
      
      Conflicts:
      	drivers/acpi/video.c
      8a3a53ea
    • Rafael J. Wysocki's avatar
      Merge branch 'acpi-processor' · 551f5c74
      Rafael J. Wysocki authored
      * acpi-processor:
        ACPI / processor: Acquire writer lock to update CPU maps
        ACPI / processor: Remove acpi_processor_get_limit_info()
      551f5c74
    • Rafael J. Wysocki's avatar
      Merge branch 'acpi-bind' · 8462d9df
      Rafael J. Wysocki authored
      * acpi-bind:
        ACPI: Print diagnostic messages if device links cannot be created
        ACPI: Drop unnecessary label from acpi_bind_one()
        ACPI: Clean up error code path in acpi_unbind_one()
        ACPI: Use list_for_each_entry() in acpi_unbind_one()
        ACPI: acpi_bind_one()/acpi_unbind_one() whitespace cleanups
        ACPI: Create symlinks in acpi_bind_one() under physical_node_lock
        ACPI: Reduce acpi_bind_one()/acpi_unbind_one() code duplication
        ACPI: Do not fail acpi_bind_one() if device is already bound correctly
      8462d9df
    • Rafael J. Wysocki's avatar
      Merge branch 'acpi-assorted' · 0c581415
      Rafael J. Wysocki authored
      * acpi-assorted:
        ACPI / osl: Kill macro INVALID_TABLE().
        earlycpio.c: Fix the confusing comment of find_cpio_data().
        ACPI / x86: Print Hot-Pluggable Field in SRAT.
        ACPI / thermal: Use THERMAL_TRIPS_NONE macro to replace number
        ACPI / thermal: Remove unused macros in the driver/acpi/thermal.c
        ACPI / thermal: Remove the unused lock of struct acpi_thermal
        ACPI / osl: Fix osi_setup_entries[] __initdata attribute location
        ACPI / numa: Fix __init attribute location in slit_valid()
        ACPI / dock: Fix __init attribute location in find_dock_and_bay()
        ACPI / Sleep: Fix incorrect placement of __initdata
        ACPI / processor: Fix incorrect placement of __initdata
        ACPI / EC: Fix incorrect placement of __initdata
        ACPI / scan: Drop unnecessary label from acpi_create_platform_device()
        ACPI: Move acpi_bus_get_device() from bus.c to scan.c
        ACPI / scan: Allow platform device creation without any IO resources
        ACPI: Cleanup sparse warning on acpi_os_initialize1()
        platform / thinkpad: Remove deprecated hotkey_report_mode parameter
        ACPI: Remove the old /proc/acpi/event interface
      0c581415
    • Rafael J. Wysocki's avatar
      Merge branch 'acpica' · afdca01c
      Rafael J. Wysocki authored
      * acpica:
        ACPICA: Update version to 20130725.
        ACPICA: Update names for walk_namespace callbacks to clarify usage.
        ACPICA: Return error if DerefOf resolves to a null package element.
        ACPICA: Make ACPI Power Management Timer (PM Timer) optional.
        ACPICA: Fix divergences of the commit - ACPICA: Expose OSI version.
        ACPICA: Fix possible fault for methods that optionally have no return value.
        ACPICA: DeRefOf operator: Update to fully resolve FieldUnit and BufferField refs.
        ACPICA: Emit all unresolved method externals in a text block
        ACPICA: Export acpi_tb_validate_rsdp().
        ACPI: Add facility to remove all _OSI strings
        ACPI: Add facility to disable all _OSI OS vendor strings
        ACPICA: Add acpi_update_interfaces() public interface
        ACPICA: Update version to 20130626
        ACPICA: Fix compiler warnings for casting issues (only some compilers)
        ACPICA: Remove restriction of 256 maximum GPEs in any GPE block
        ACPICA: Disassembler: Expand maximum output string length to 64K
        ACPICA: TableManager: Export acpi_tb_scan_memory_for_rsdp()
        ACPICA: Update comments about behavior when _STA does not exist
      afdca01c
    • Rafael J. Wysocki's avatar
      Merge branch 'acpi-sleep' · 4b319f29
      Rafael J. Wysocki authored
      * acpi-sleep:
        x86 / tboot / ACPI: Fail extended mode reduced hardware sleep
        xen / ACPI: notify xen when reduced hardware sleep is available
        ACPI / sleep: Introduce acpi_os_prepare_extended_sleep() for extended sleep path
      4b319f29
    • Rafael J. Wysocki's avatar
      Merge branch 'acpi-pm' · 0ad4c9a9
      Rafael J. Wysocki authored
      * acpi-pm:
        ACPI / PM: Add state information to error message in acpi_device_set_power()
        ACPI / PM: Remove redundant power manageable check from acpi_bus_set_power()
        ACPI / PM: Use ACPI_STATE_D3_COLD instead of ACPI_STATE_D3 everywhere
        ACPI / PM: Make messages in acpi_device_set_power() print device names
        ACPI / PM: Only set power states of devices that are power manageable
      0ad4c9a9
    • Rafael J. Wysocki's avatar
      Merge branch 'acpi-pci-hotplug' · abe5430e
      Rafael J. Wysocki authored
      * acpi-pci-hotplug: (34 commits)
        ACPI / PM: Hold acpi_scan_lock over system PM transitions
        ACPI / hotplug / PCI: Fix NULL pointer dereference in cleanup_bridge()
        PCI / ACPI: Use dev_dbg() instead of dev_info() in acpi_pci_set_power_state()
        ACPI / hotplug / PCI: Get rid of check_sub_bridges()
        ACPI / hotplug / PCI: Clean up bridge_mutex usage
        ACPI / hotplug / PCI: Redefine enable_device() and disable_device()
        ACPI / hotplug / PCI: Sanitize acpiphp_get_(latch)|(adapter)_status()
        ACPI / hotplug / PCI: Get rid of unused constants in acpiphp.h
        ACPI / hotplug / PCI: Check for new devices on enabled slots
        ACPI / hotplug / PCI: Allow slots without new devices to be rescanned
        ACPI / hotplug / PCI: Do not check SLOT_ENABLED in enable_device()
        ACPI / hotplug / PCI: Do not exectute _PS0 and _PS3 directly
        ACPI / hotplug / PCI: Do not queue up event handling work items in vain
        ACPI / hotplug / PCI: Consolidate slot disabling and ejecting
        ACPI / hotplug / PCI: Drop redundant checks from check_hotplug_bridge()
        ACPI / hotplug / PCI: Rework namespace scanning and trimming routines
        ACPI / hotplug / PCI: Store parent in functions and bus in slots
        ACPI / hotplug / PCI: Drop handle field from struct acpiphp_bridge
        ACPI / hotplug / PCI: Drop handle field from struct acpiphp_func
        ACPI / hotplug / PCI: Embed function struct into struct acpiphp_context
        ...
      abe5430e
    • Rafael J. Wysocki's avatar
      Merge branch 'acpi-cleanup' · c92f56cb
      Rafael J. Wysocki authored
      * acpi-cleanup: (21 commits)
        ACPI / dock: fix error return code in dock_add()
        ACPI / dock: Drop unnecessary local variable from dock_add()
        ACPI / dock / PCI: Drop ACPI dock notifier chain
        ACPI / dock: Do not check CONFIG_ACPI_DOCK_MODULE
        ACPI / dock: Do not leak memory on falilures to add a dock station
        ACPI: Drop ACPI bus notifier call chain
        ACPI / dock: Rework the handling of notifications
        ACPI / dock: Simplify dock_init_hotplug() and dock_release_hotplug()
        ACPI / dock: Walk list in reverse order during removal of devices
        ACPI / dock: Rework and simplify find_dock_devices()
        ACPI / dock: Drop the hp_lock mutex from struct dock_station
        ACPI: simplify acpiphp driver with new helper functions
        ACPI: simplify dock driver with new helper functions
        ACPI: Export acpi_(bay)|(dock)_match() from scan.c
        ACPI: introduce two helper functions for _EJ0 and _LCK
        ACPI: introduce helper function acpi_execute_simple_method()
        ACPI: introduce helper function acpi_has_method()
        ACPI / dock: simplify dock_create_acpi_device()
        ACPI / dock: mark initialization functions with __init
        ACPI / dock: drop redundant spin lock in dock station object
        ...
      c92f56cb
    • Linus Torvalds's avatar
      Linux 3.11-rc7 · d8dfad38
      Linus Torvalds authored
      d8dfad38
  2. 25 Aug, 2013 5 commits
  3. 24 Aug, 2013 8 commits
  4. 23 Aug, 2013 13 commits
    • Linus Torvalds's avatar
      Merge branch 'for-3.11-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata · 89b53e50
      Linus Torvalds authored
      Pull libata fixes from Tejun Heo:
       "This contains three commits all of which are updates for specific
        devices which aren't too widespread.  Pretty limited scope and nothing
        too interesting or dangerous"
      
      * 'for-3.11-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata:
        sata_fsl: save irqs while coalescing
        libata: apply behavioral quirks to sil3826 PMP
        sata, highbank: fix ordering of SGPIO signals
      89b53e50
    • Linus Torvalds's avatar
      Merge branch 'for-3.11-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup · e2982a04
      Linus Torvalds authored
      Pull cgroup fix from Tejun Heo:
       "A late fix for cgroup.
      
        This fixes a behavior regression visible to userland which was created
        by a commit merged during -rc1.  While the behavior change isn't too
        likely to be noticeable, the fix is relatively low risk and we'll need
        to backport it through -stable anyway if the bug gets released"
      
      * 'for-3.11-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup:
        cpuset: fix a regression in validating config change
      e2982a04
    • Linus Torvalds's avatar
      Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux · f07823e1
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Ben was on holidays for a week so a few nouveau regression fixes
        backed up, but they all seem necessary.
      
        Otherwise one i915 and one gma500 fix"
      
      * 'drm-fixes' of git://people.freedesktop.org/~airlied/linux:
        gma500: Fix SDVO turning off randomly
        drm/nv04/disp: fix framebuffer pin refcounting
        drm/nouveau/mc: fix race condition between constructor and request_irq()
        drm/nouveau: fix reclocking on nv40
        drm/nouveau/ltcg: fix allocating memory as free
        drm/nouveau/ltcg: fix ltcg memory initialization after suspend
        drm/nouveau/fb: fix null derefs in nv49 and nv4e init
        drm/i915: Invalidate TLBs for the rings after a reset
      f07823e1
    • Anatolij Gustschin's avatar
      usb: phy: fix build breakage · 52d5b9ab
      Anatolij Gustschin authored
      Commit 94ae9843 (usb: phy: rename all phy drivers to phy-$name-usb.c)
      renamed drivers/usb/phy/otg_fsm.h to drivers/usb/phy/phy-fsm-usb.h
      but changed drivers/usb/phy/phy-fsm-usb.c to include not existing
      "phy-otg-fsm.h" instead of new "phy-fsm-usb.h". This breaks building:
        ...
        drivers/usb/phy/phy-fsm-usb.c:32:25: fatal error: phy-otg-fsm.h: No such file or directory
        compilation terminated.
        make[3]: *** [drivers/usb/phy/phy-fsm-usb.o] Error 1
      
      This commit also missed to modify drivers/usb/phy/phy-fsl-usb.h
      to include new "phy-fsm-usb.h" instead of "otg_fsm.h" resulting
      in another build breakage:
        ...
        In file included from drivers/usb/phy/phy-fsl-usb.c:46:0:
        drivers/usb/phy/phy-fsl-usb.h:18:21: fatal error: otg_fsm.h: No such file or directory
        compilation terminated.
        make[3]: *** [drivers/usb/phy/phy-fsl-usb.o] Error 1
      
      Fix both issues.
      Signed-off-by: default avatarAnatolij Gustschin <agust@denx.de>
      Cc: stable <stable@vger.kernel.org> # 3.10+
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      52d5b9ab
    • Alan Stern's avatar
      USB: OHCI: add missing PCI PM callbacks to ohci-pci.c · 9a11899c
      Alan Stern authored
      Commit c1117afb (USB: OHCI: make ohci-pci a separate driver)
      neglected to preserve the entries for the pci_suspend and pci_resume
      driver callbacks.  As a result, OHCI controllers don't work properly
      during suspend and after hibernation.
      
      This patch adds the missing callbacks to the driver.
      Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
      Reported-and-tested-by: default avatarSteve Cotton <steve@s.cotton.clara.co.uk>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      9a11899c
    • Ian Abbott's avatar
      staging: comedi: bug-fix NULL pointer dereference on failed attach · 3955dfa8
      Ian Abbott authored
      Commit dcd7b8bd ("staging: comedi: put
      module _after_ detach" by myself) reversed a couple of calls in
      `comedi_device_attach()` when recovering from an error returned by the
      low-level driver's 'attach' handler.  Unfortunately, that introduced a
      NULL pointer dereference bug as `dev->driver` is NULL after the call to
      `comedi_device_detach()`.   We still have a pointer to the low-level
      comedi driver structure in the `driv` variable, so use that instead.
      Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
      Cc: <stable@vger.kernel.org> # 3.10+
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      3955dfa8
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net · 41a00f79
      Linus Torvalds authored
      Merge networking fixes from David Miller:
      
       1) Revert Johannes Berg's genetlink locking fix, because it causes
          regressions.
      
          Johannes and Pravin Shelar are working on fixing things properly.
      
       2) Do not drop ipv6 ICMP messages without a redirected header option,
          they are legal.  From Duan Jiong.
      
       3) Missing error return propagation in probing of via-ircc driver.
          From Alexey Khoroshilov.
      
       4) Do not clear out broadcast/multicast/unicast/WOL bits in r8169 when
          initializing, from Peter Wu.
      
       5) realtek phy driver programs wrong interrupt status bit, from
          Giuseppe CAVALLARO.
      
       6) Fix statistics regression in AF_PACKET code, from Willem de Bruijn.
      
       7) Bridge code uses wrong bitmap length, from Toshiaki Makita.
      
       8) SFC driver uses wrong indexes to look up MAC filters, from Ben
          Hutchings.
      
       9) Don't pass stack buffers into usb control operations in hso driver,
          from Daniel Gimpelevich.
      
      10) Multiple ipv6 fragmentation headers in one packet is illegal and
          such packets should be dropped, from Hannes Frederic Sowa.
      
      11) When TCP sockets are "repaired" as part of checkpoint/restart, the
          timestamp field of SKBs need to be refreshed otherwise RTOs can be
          wildly off.  From Andrey Vagin.
      
      12) Fix memcpy args (uses 'address of pointer' instead of 'pointer') in
          hostp driver.  From Dan Carpenter.
      
      13) nl80211hdr_put() doesn't return an ERR_PTR, but some code believes
          it does.  From Dan Carpenter.
      
      14) Fix regression in wireless SME disconnects, from Johannes Berg.
      
      15) Don't use a stack buffer for DMA in zd1201 USB wireless driver, from
          Jussi Kivilinna.
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (33 commits)
        ipv4: expose IPV4_DEVCONF
        ipv6: handle Redirect ICMP Message with no Redirected Header option
        be2net: fix disabling TX in be_close()
        Revert "genetlink: fix family dump race"
        hso: Fix stack corruption on some architectures
        hso: Earlier catch of error condition
        sfc: Fix lookup of default RX MAC filters when steered using ethtool
        bridge: Use the correct bit length for bitmap functions in the VLAN code
        packet: restore packet statistics tp_packets to include drops
        net: phy: rtl8211: fix interrupt on status link change
        r8169: remember WOL preferences on driver load
        via-ircc: don't return zero if via_ircc_open() failed
        macvtap: Ignore tap features when VNET_HDR is off
        macvtap: Correctly set tap features when IFF_VNET_HDR is disabled.
        macvtap: simplify usage of tap_features
        tcp: set timestamps for restored skb-s
        bnx2x: set VF DMAE when first function has 0 supported VFs
        bnx2x: Protect against VFs' ndos when SR-IOV is disabled
        bnx2x: prevent VF benign attentions
        bnx2x: Consider DCBX remote error
        ...
      41a00f79
    • Linus Torvalds's avatar
      Merge branch 'akpm' (patches from Andrew Morton) · 3db0d4de
      Linus Torvalds authored
      Merge fixes from Andrew Morton:
       "A few fixes.  One is a licensing change and I don't do licensing, so
        please eyeball that one"
      
      Licensing eye-balled.
      
      * emailed patches from Andrew Morton <akpm@linux-foundation.org>:
        lib/lz4: correct the LZ4 license
        memcg: get rid of swapaccount leftovers
        nilfs2: fix issue with counting number of bio requests for BIO_EOPNOTSUPP error detection
        nilfs2: remove double bio_put() in nilfs_end_bio_write() for BIO_EOPNOTSUPP error
        drivers/platform/olpc/olpc-ec.c: initialise earlier
      3db0d4de
    • Richard Laager's avatar
      lib/lz4: correct the LZ4 license · ee8a99bd
      Richard Laager authored
      The LZ4 code is listed as using the "BSD 2-Clause License".
      Signed-off-by: default avatarRichard Laager <rlaager@wiktel.com>
      Acked-by: default avatarKyungsik Lee <kyungsik.lee@lge.com>
      Cc: Chanho Min <chanho.min@lge.com>
      Cc: Richard Yao <ryao@gentoo.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      [ The 2-clause BSD can be just converted into GPL, but that's rude and
        pointless, so don't do it   - Linus ]
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      ee8a99bd
    • Michal Hocko's avatar
      memcg: get rid of swapaccount leftovers · 07555ac1
      Michal Hocko authored
      The swapaccount kernel parameter without any values has been removed by
      commit a2c8990a ("memsw: remove noswapaccount kernel parameter") but
      it seems that we didn't get rid of all the left overs.
      
      Make sure that menuconfig help text and kernel-parameters.txt are clear
      about value for the paramter and remove the stalled comment which is not
      very much useful on its own.
      Signed-off-by: default avatarMichal Hocko <mhocko@suse.cz>
      Reported-by: default avatarGergely Risko <gergely@risko.hu>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      07555ac1
    • Vyacheslav Dubeyko's avatar
      nilfs2: fix issue with counting number of bio requests for BIO_EOPNOTSUPP error detection · 4bf93b50
      Vyacheslav Dubeyko authored
      Fix the issue with improper counting number of flying bio requests for
      BIO_EOPNOTSUPP error detection case.
      
      The sb_nbio must be incremented exactly the same number of times as
      complete() function was called (or will be called) because
      nilfs_segbuf_wait() will call wail_for_completion() for the number of
      times set to sb_nbio:
      
        do {
            wait_for_completion(&segbuf->sb_bio_event);
        } while (--segbuf->sb_nbio > 0);
      
      Two functions complete() and wait_for_completion() must be called the
      same number of times for the same sb_bio_event.  Otherwise,
      wait_for_completion() will hang or leak.
      Signed-off-by: default avatarVyacheslav Dubeyko <slava@dubeyko.com>
      Cc: Dan Carpenter <dan.carpenter@oracle.com>
      Acked-by: default avatarRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
      Tested-by: default avatarRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      4bf93b50
    • Vyacheslav Dubeyko's avatar
      nilfs2: remove double bio_put() in nilfs_end_bio_write() for BIO_EOPNOTSUPP error · 2df37a19
      Vyacheslav Dubeyko authored
      Remove double call of bio_put() in nilfs_end_bio_write() for the case of
      BIO_EOPNOTSUPP error detection.  The issue was found by Dan Carpenter
      and he suggests first version of the fix too.
      Signed-off-by: default avatarVyacheslav Dubeyko <slava@dubeyko.com>
      Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Acked-by: default avatarRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
      Tested-by: default avatarRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      2df37a19
    • Daniel Drake's avatar
      drivers/platform/olpc/olpc-ec.c: initialise earlier · 93dbc1b3
      Daniel Drake authored
      Being a low-level component, various drivers (e.g.  olpc-battery) assume
      that it is ok to communicate with the OLPC Embedded Controller during
      probe.  Therefore the OLPC EC driver must be initialised before other
      drivers try to use it.  This was the case until it was recently moved
      out of arch/x86 and restructured around commits ac250415 ("Platform:
      OLPC: turn EC driver into a platform_driver") and 85f90cf6 ("x86:
      OLPC: switch over to using new EC driver on x86").
      
      Use arch_initcall so that olpc-ec is readied earlier, matching the
      previous behaviour.
      
      Fixes a regression introduced in Linux-3.6 where various drivers such as
      olpc-battery and olpc-xo1-sci failed to load due to an inability to
      communicate with the EC.  The user-visible effect was a lack of battery
      monitoring, missing ebook/lid switch input devices, etc.
      Signed-off-by: default avatarDaniel Drake <dsd@laptop.org>
      Cc: Andres Salomon <dilinger@queued.net>
      Cc: Paul Fox <pgf@laptop.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      93dbc1b3