[PATCH] uninorth agp: don't mark module parameter __devinit

Johannes Berg johannes at sipsolutions.net
Wed Oct 29 13:11:24 EST 2008


A module parameter can possibly be shown via sysfs, which isn't a good
idea if the section has been removed, so remove the __devinit
annotation.

Signed-off-by: Johannes Berg <johannes at sipsolutions.net>
---
Also fixes a section mismatch warning.

--- everything.orig/drivers/char/agp/uninorth-agp.c	2008-10-29 03:07:26.000000000 +0100
+++ everything/drivers/char/agp/uninorth-agp.c	2008-10-29 03:08:16.000000000 +0100
@@ -27,7 +27,7 @@
 static int uninorth_rev;
 static int is_u3;
 
-static char __devinitdata *aperture = NULL;
+static char *aperture = NULL;
 
 static int uninorth_fetch_size(void)
 {





More information about the Linuxppc-dev mailing list