sh: Fix build after dynamic PMB rework
authorMatt Fleming <matt@console-pimps.org>
Mon, 22 Mar 2010 22:09:58 +0000 (22:09 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 23 Mar 2010 04:37:03 +0000 (13:37 +0900)
set_pmb_entry() is now only used by a function that is wrapped in #ifdef
CONFIG_PM, so wrap set_pmb_entry() in CONFIG_PM too.

Signed-off-by: Matt Fleming <matt@console-pimps.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/mm/pmb.c

index 0b14dcf05da73603a4ad3679e0ba9ef23f2cd3e4..3cc21933063bf7485a8b0cf2836ef560b54da74d 100644 (file)
@@ -323,6 +323,7 @@ static void __clear_pmb_entry(struct pmb_entry *pmbe)
        writel_uncached(data_val & ~PMB_V, data);
 }
 
+#ifdef CONFIG_PM
 static void set_pmb_entry(struct pmb_entry *pmbe)
 {
        unsigned long flags;
@@ -331,6 +332,7 @@ static void set_pmb_entry(struct pmb_entry *pmbe)
        __set_pmb_entry(pmbe);
        spin_unlock_irqrestore(&pmbe->lock, flags);
 }
+#endif /* CONFIG_PM */
 
 int pmb_bolt_mapping(unsigned long vaddr, phys_addr_t phys,
                     unsigned long size, pgprot_t prot)