* [PATCH] i915: remove __initdata from intel_no_lvds
@ 2009-05-17 12:22 Michael S. Tsirkin
0 siblings, 0 replies; only message in thread
From: Michael S. Tsirkin @ 2009-05-17 12:22 UTC (permalink / raw)
To: airlied; +Cc: dri-devel, linux-kernel
make with CONFIG_DEBUG_SECTION_MISMATCH=y warns about the function
intel_lvds_init() referencing the variable __initdata intel_no_lvds.
Since intel_lvds_init might get called after module has been loaded,
intel_no_lvds shouldn't be marked __initdata.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
This is on top of v2.6.30-rc6. Makes sense?
drivers/gpu/drm/i915/intel_lvds.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/gpu/drm/i915/intel_lvds.c b/drivers/gpu/drm/i915/intel_lvds.c
index 439a865..5ffadf9 100644
--- a/drivers/gpu/drm/i915/intel_lvds.c
+++ b/drivers/gpu/drm/i915/intel_lvds.c
@@ -391,7 +391,7 @@ static int __init intel_no_lvds_dmi_callback(const struct dmi_system_id *id)
}
/* These systems claim to have LVDS, but really don't */
-static const struct dmi_system_id __initdata intel_no_lvds[] = {
+static const struct dmi_system_id intel_no_lvds[] = {
{
.callback = intel_no_lvds_dmi_callback,
.ident = "Apple Mac Mini (Core series)",
--
1.6.3.rc3.1.g830204
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-05-17 12:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-17 12:22 [PATCH] i915: remove __initdata from intel_no_lvds Michael S. Tsirkin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.