aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/omap_device.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/plat-omap/omap_device.c')
-rw-r--r--arch/arm/plat-omap/omap_device.c20
1 files changed, 7 insertions, 13 deletions
diff --git a/arch/arm/plat-omap/omap_device.c b/arch/arm/plat-omap/omap_device.c
index e8d98693d2dd..2d00ab01d150 100644
--- a/arch/arm/plat-omap/omap_device.c
+++ b/arch/arm/plat-omap/omap_device.c
@@ -1,3 +1,4 @@
1
1/* 2/*
2 * omap_device implementation 3 * omap_device implementation
3 * 4 *
@@ -97,14 +98,7 @@
97#define USE_WAKEUP_LAT 0 98#define USE_WAKEUP_LAT 0
98#define IGNORE_WAKEUP_LAT 1 99#define IGNORE_WAKEUP_LAT 1
99 100
100static int omap_device_register(struct platform_device *pdev);
101static int omap_early_device_register(struct platform_device *pdev); 101static int omap_early_device_register(struct platform_device *pdev);
102static struct omap_device *omap_device_alloc(struct platform_device *pdev,
103 struct omap_hwmod **ohs, int oh_cnt,
104 struct omap_device_pm_latency *pm_lats,
105 int pm_lats_cnt);
106static void omap_device_delete(struct omap_device *od);
107
108 102
109static struct omap_device_pm_latency omap_default_latency[] = { 103static struct omap_device_pm_latency omap_default_latency[] = {
110 { 104 {
@@ -509,7 +503,7 @@ static int omap_device_fill_resources(struct omap_device *od,
509 * 503 *
510 * Returns an struct omap_device pointer or ERR_PTR() on error; 504 * Returns an struct omap_device pointer or ERR_PTR() on error;
511 */ 505 */
512static struct omap_device *omap_device_alloc(struct platform_device *pdev, 506struct omap_device *omap_device_alloc(struct platform_device *pdev,
513 struct omap_hwmod **ohs, int oh_cnt, 507 struct omap_hwmod **ohs, int oh_cnt,
514 struct omap_device_pm_latency *pm_lats, 508 struct omap_device_pm_latency *pm_lats,
515 int pm_lats_cnt) 509 int pm_lats_cnt)
@@ -591,7 +585,7 @@ oda_exit1:
591 return ERR_PTR(ret); 585 return ERR_PTR(ret);
592} 586}
593 587
594static void omap_device_delete(struct omap_device *od) 588void omap_device_delete(struct omap_device *od)
595{ 589{
596 if (!od) 590 if (!od)
597 return; 591 return;
@@ -619,7 +613,7 @@ static void omap_device_delete(struct omap_device *od)
619 * information. Returns ERR_PTR(-EINVAL) if @oh is NULL; otherwise, 613 * information. Returns ERR_PTR(-EINVAL) if @oh is NULL; otherwise,
620 * passes along the return value of omap_device_build_ss(). 614 * passes along the return value of omap_device_build_ss().
621 */ 615 */
622struct platform_device *omap_device_build(const char *pdev_name, int pdev_id, 616struct platform_device __init *omap_device_build(const char *pdev_name, int pdev_id,
623 struct omap_hwmod *oh, void *pdata, 617 struct omap_hwmod *oh, void *pdata,
624 int pdata_len, 618 int pdata_len,
625 struct omap_device_pm_latency *pm_lats, 619 struct omap_device_pm_latency *pm_lats,
@@ -652,7 +646,7 @@ struct platform_device *omap_device_build(const char *pdev_name, int pdev_id,
652 * platform_device record. Returns an ERR_PTR() on error, or passes 646 * platform_device record. Returns an ERR_PTR() on error, or passes
653 * along the return value of omap_device_register(). 647 * along the return value of omap_device_register().
654 */ 648 */
655struct platform_device *omap_device_build_ss(const char *pdev_name, int pdev_id, 649struct platform_device __init *omap_device_build_ss(const char *pdev_name, int pdev_id,
656 struct omap_hwmod **ohs, int oh_cnt, 650 struct omap_hwmod **ohs, int oh_cnt,
657 void *pdata, int pdata_len, 651 void *pdata, int pdata_len,
658 struct omap_device_pm_latency *pm_lats, 652 struct omap_device_pm_latency *pm_lats,
@@ -717,7 +711,7 @@ odbs_exit:
717 * platform_early_add_device() on the underlying platform_device. 711 * platform_early_add_device() on the underlying platform_device.
718 * Returns 0 by default. 712 * Returns 0 by default.
719 */ 713 */
720static int omap_early_device_register(struct platform_device *pdev) 714static int __init omap_early_device_register(struct platform_device *pdev)
721{ 715{
722 struct platform_device *devices[1]; 716 struct platform_device *devices[1];
723 717
@@ -817,7 +811,7 @@ static struct dev_pm_domain omap_device_pm_domain = {
817 * platform_device_register() on the underlying platform_device. 811 * platform_device_register() on the underlying platform_device.
818 * Returns the return value of platform_device_register(). 812 * Returns the return value of platform_device_register().
819 */ 813 */
820static int omap_device_register(struct platform_device *pdev) 814int omap_device_register(struct platform_device *pdev)
821{ 815{
822 pr_debug("omap_device: %s: registering\n", pdev->name); 816 pr_debug("omap_device: %s: registering\n", pdev->name);
823 817