[POWERPC] PS3: Make ps3_virq_setup and ps3_virq_destroy static
authorGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Wed, 30 Apr 2008 22:25:18 +0000 (08:25 +1000)
committerPaul Mackerras <paulus@samba.org>
Fri, 2 May 2008 05:00:44 +0000 (15:00 +1000)
The routines ps3_virq_setup() and ps3_virq_destroy() are used
in only one file, so make them static.

Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/ps3/interrupt.c
include/asm-powerpc/ps3.h

index a14e5cdc2fed758862ef2e5de522831955b16810..e59634f7af9637d29bca47505508bb30cf624953 100644 (file)
@@ -167,8 +167,8 @@ static struct irq_chip ps3_irq_chip = {
  * ps3_private data.
  */
 
-int ps3_virq_setup(enum ps3_cpu_binding cpu, unsigned long outlet,
-       unsigned int *virq)
+static int ps3_virq_setup(enum ps3_cpu_binding cpu, unsigned long outlet,
+                         unsigned int *virq)
 {
        int result;
        struct ps3_private *pd;
@@ -217,7 +217,7 @@ fail_create:
  * Clears chip data and calls irq_dispose_mapping() for the virq.
  */
 
-int ps3_virq_destroy(unsigned int virq)
+static int ps3_virq_destroy(unsigned int virq)
 {
        const struct ps3_private *pd = get_irq_chip_data(virq);
 
index 9e8ed6824e152e24a12a0cdfa3705aeafef97ecc..81ffe3b3c1ce771b29062d5111d1c23d5aa94875 100644 (file)
@@ -178,9 +178,6 @@ enum ps3_cpu_binding {
        PS3_BINDING_CPU_1 = 1,
 };
 
-int ps3_virq_setup(enum ps3_cpu_binding cpu, unsigned long outlet,
-       unsigned int *virq);
-int ps3_virq_destroy(unsigned int virq);
 int ps3_irq_plug_setup(enum ps3_cpu_binding cpu, unsigned long outlet,
        unsigned int *virq);
 int ps3_irq_plug_destroy(unsigned int virq);