diff options
author | Kevin Hilman <khilman@baylibre.com> | 2016-11-15 11:54:19 -0800 |
---|---|---|
committer | Sekhar Nori <nsekhar@ti.com> | 2016-11-16 14:41:29 +0530 |
commit | aa9aa1ec2df6ffb270cf98b848570ed58e11a1f9 (patch) | |
tree | 5fae1531cc8ebfa1f64f77325d426ba4e96c23a9 /arch/arm/mach-davinci/board-da850-evm.c | |
parent | 766763dbdc1dca11deabdb00077a1c19e2803f0a (diff) | |
download | op-kernel-dev-aa9aa1ec2df6ffb270cf98b848570ed58e11a1f9.zip op-kernel-dev-aa9aa1ec2df6ffb270cf98b848570ed58e11a1f9.tar.gz |
ARM: davinci: PM: rework init, remove platform device
Remove fake platform device used for PM init. Move pdata values which
are common across all current platforms into pm.c.
Also, since PM is only used on da8xx, remove davinci_pm_init() from
common init code, and only use in da850/omapl138 board files that are
currently creating the fake platform_device.
Suggested-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
[nsekhar@ti.com: subject line adjustment]
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Diffstat (limited to 'arch/arm/mach-davinci/board-da850-evm.c')
-rw-r--r-- | arch/arm/mach-davinci/board-da850-evm.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c index 8e4539f..4e88723 100644 --- a/arch/arm/mach-davinci/board-da850-evm.c +++ b/arch/arm/mach-davinci/board-da850-evm.c @@ -196,18 +196,6 @@ static struct platform_device da850_evm_norflash_device = { .resource = da850_evm_norflash_resource, }; -static struct davinci_pm_config da850_pm_pdata = { - .sleepcount = 128, -}; - -static struct platform_device da850_pm_device = { - .name = "pm-davinci", - .dev = { - .platform_data = &da850_pm_pdata, - }, - .id = -1, -}; - /* DA850/OMAP-L138 EVM includes a 512 MByte large-page NAND flash * (128K blocks). It may be used instead of the (default) SPI flash * to boot, using TI's tools to install the secondary boot loader @@ -1453,10 +1441,7 @@ static __init void da850_evm_init(void) if (ret) pr_warn("%s: cpuidle registration failed: %d\n", __func__, ret); - ret = da850_register_pm(&da850_pm_device); - if (ret) - pr_warn("%s: suspend registration failed: %d\n", __func__, ret); - + davinci_pm_init(); da850_vpif_init(); ret = spi_register_board_info(da850evm_spi_info, |