diff options
Diffstat (limited to 'arch/arm/plat-omap/omap_device.c')
-rw-r--r-- | arch/arm/plat-omap/omap_device.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/arch/arm/plat-omap/omap_device.c b/arch/arm/plat-omap/omap_device.c index 142bbd8fa3b2..d3fdf5137e06 100644 --- a/arch/arm/plat-omap/omap_device.c +++ b/arch/arm/plat-omap/omap_device.c | |||
@@ -94,6 +94,9 @@ | |||
94 | #define USE_WAKEUP_LAT 0 | 94 | #define USE_WAKEUP_LAT 0 |
95 | #define IGNORE_WAKEUP_LAT 1 | 95 | #define IGNORE_WAKEUP_LAT 1 |
96 | 96 | ||
97 | static int omap_device_register(struct omap_device *od); | ||
98 | static int omap_early_device_register(struct omap_device *od); | ||
99 | |||
97 | /* Private functions */ | 100 | /* Private functions */ |
98 | 101 | ||
99 | /** | 102 | /** |
@@ -339,7 +342,7 @@ u32 omap_device_get_context_loss_count(struct platform_device *pdev) | |||
339 | * much memory to allocate before calling | 342 | * much memory to allocate before calling |
340 | * omap_device_fill_resources(). Returns the count. | 343 | * omap_device_fill_resources(). Returns the count. |
341 | */ | 344 | */ |
342 | int omap_device_count_resources(struct omap_device *od) | 345 | static int omap_device_count_resources(struct omap_device *od) |
343 | { | 346 | { |
344 | int c = 0; | 347 | int c = 0; |
345 | int i; | 348 | int i; |
@@ -370,7 +373,8 @@ int omap_device_count_resources(struct omap_device *od) | |||
370 | * functions to get device resources. Hacking around the existing | 373 | * functions to get device resources. Hacking around the existing |
371 | * platform_device code wastes memory. Returns 0. | 374 | * platform_device code wastes memory. Returns 0. |
372 | */ | 375 | */ |
373 | int omap_device_fill_resources(struct omap_device *od, struct resource *res) | 376 | static int omap_device_fill_resources(struct omap_device *od, |
377 | struct resource *res) | ||
374 | { | 378 | { |
375 | int c = 0; | 379 | int c = 0; |
376 | int i, r; | 380 | int i, r; |
@@ -534,7 +538,7 @@ odbs_exit1: | |||
534 | * platform_early_add_device() on the underlying platform_device. | 538 | * platform_early_add_device() on the underlying platform_device. |
535 | * Returns 0 by default. | 539 | * Returns 0 by default. |
536 | */ | 540 | */ |
537 | int omap_early_device_register(struct omap_device *od) | 541 | static int omap_early_device_register(struct omap_device *od) |
538 | { | 542 | { |
539 | struct platform_device *devices[1]; | 543 | struct platform_device *devices[1]; |
540 | 544 | ||
@@ -634,7 +638,7 @@ static struct dev_pm_domain omap_device_pm_domain = { | |||
634 | * platform_device_register() on the underlying platform_device. | 638 | * platform_device_register() on the underlying platform_device. |
635 | * Returns the return value of platform_device_register(). | 639 | * Returns the return value of platform_device_register(). |
636 | */ | 640 | */ |
637 | int omap_device_register(struct omap_device *od) | 641 | static int omap_device_register(struct omap_device *od) |
638 | { | 642 | { |
639 | pr_debug("omap_device: %s: registering\n", od->pdev.name); | 643 | pr_debug("omap_device: %s: registering\n", od->pdev.name); |
640 | 644 | ||