x86: OLPC: convert olpc-xo1 driver from pci device to platform device
PATCH 4/4 x86: OLPC: convert olpc-xo1 driver from pci device to platform device
The cs5535-mfd driver now takes care of the PCI BAR handling; this means the olpc-xo1 driver shouldn't be touching the PCI device at all.
This patch uses both cs5535-acpi and cs5535-pms platform devices rather than a single platform device because the cs5535-mfd driver may be used by other CS5535 platform-specific drivers; OLPC doesn't get to dictate that ACPI and PMS will always be used together.
Signed-off-by Andres Salomon <[email protected]>
--- arch/x86/Kconfig | 2 +- arch/x86/kernel/olpc-xo1.c | 101 ++++++++++++++++++++++++-------------------- 2 files changed, 56 insertions(+), 47 deletions(-)
arch/x86/Kconfig +1 -1
@@ -2038,7 +2038,7 @@ config OLPC config OLPC_XO1 tristate "OLPC XO-1 support" - depends on OLPC && PCI + depends on OLPC && MFD_CS5535 ---help--- Add support for non-essential features of the OLPC XO-1 laptop.
arch/x86/kernel/olpc-xo1.c +55 -46
155 lines not on this page · raw message
Signature · 1 line
1.7.1