ARM: OMAP: Define omap_dm_timer_prepare function as static
authorJon Hunter <jon-hunter@ti.com>
Fri, 28 Sep 2012 17:21:09 +0000 (12:21 -0500)
committerJon Hunter <jon-hunter@ti.com>
Fri, 16 Nov 2012 16:35:06 +0000 (10:35 -0600)
The omap_dm_timer_prepare function is a local function only used in the
dmtimer.c file. Therefore, make this a static function and remove its
declaration from the dmtimer.h file.

Signed-off-by: Jon Hunter <jon-hunter@ti.com>
arch/arm/plat-omap/dmtimer.c
arch/arm/plat-omap/include/plat/dmtimer.h

index 4c28452ba07885bab162543e6a664afcdfdd4d30..efe47744b491a61da9b7a9604f19a9a94fad88f9 100644 (file)
@@ -128,7 +128,7 @@ static int omap_dm_timer_reset(struct omap_dm_timer *timer)
        return 0;
 }
 
-int omap_dm_timer_prepare(struct omap_dm_timer *timer)
+static int omap_dm_timer_prepare(struct omap_dm_timer *timer)
 {
        int rc;
 
index c5c890dabca43c4a1a91c1c9d32dd4d72a0fd4c5..40383b68a099ee68b6ad0fce101002f62aefbdb2 100644 (file)
@@ -286,8 +286,6 @@ struct omap_dm_timer {
        struct list_head node;
 };
 
-int omap_dm_timer_prepare(struct omap_dm_timer *timer);
-
 static inline u32 __omap_dm_timer_read(struct omap_dm_timer *timer, u32 reg,
                                                int posted)
 {