mac: Make cuda_init_via() __init
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 30 Jun 2013 10:03:23 +0000 (12:03 +0200)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 1 Jul 2013 01:10:36 +0000 (11:10 +1000)
cuda_init_via() is called from find_via_cuda() only, which is __init.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
drivers/macintosh/via-cuda.c

index 86511c570dd8c16cade3c153c3f1a1d497fdc573..d61f271d22078ac13166e49a79d9c03c94d5f71c 100644 (file)
@@ -259,7 +259,7 @@ cuda_probe(void)
     } while (0)
 
 static int
-cuda_init_via(void)
+__init cuda_init_via(void)
 {
     out_8(&via[DIRB], (in_8(&via[DIRB]) | TACK | TIP) & ~TREQ);        /* TACK & TIP out */
     out_8(&via[B], in_8(&via[B]) | TACK | TIP);                        /* negate them */