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>
This commit is contained in:

committed by
Sekhar Nori

parent
766763dbdc
commit
aa9aa1ec2d
@@ -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,
|
||||
|
Reference in New Issue
Block a user