Patchwork mac: Make cuda_init_via() __init

login
register
mail settings
Submitter Geert Uytterhoeven
Date June 30, 2013, 10:03 a.m.
Message ID <1372586603-1373-1-git-send-email-geert@linux-m68k.org>
Download mbox | patch
Permalink /patch/255871/
State Accepted, archived
Commit 330dae19998072e97f550885a0087df6d6556816
Headers show

Comments

Geert Uytterhoeven - June 30, 2013, 10:03 a.m.
cuda_init_via() is called from find_via_cuda() only, which is __init.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 drivers/macintosh/via-cuda.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/drivers/macintosh/via-cuda.c b/drivers/macintosh/via-cuda.c
index 86511c5..d61f271 100644
--- a/drivers/macintosh/via-cuda.c
+++ b/drivers/macintosh/via-cuda.c
@@ -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 */