]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
gma500: Fix symbol clash with i915
authorAlan Cox <alan@linux.intel.com>
Fri, 8 Jul 2011 08:43:45 +0000 (09:43 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 8 Jul 2011 20:44:57 +0000 (13:44 -0700)
Randy Dunlap reports:
| when both CONFIG_DRM_I915=y and CONFIG_DRM_PSB=y:
| drivers/staging/built-in.o: In function `intel_opregion_init':
| (.text+0x47943): multiple definition of `intel_opregion_init'
| drivers/gpu/built-in.o:(.text+0x17277a): first defined here

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/gma500/cdv_device.c
drivers/staging/gma500/intel_opregion.c
drivers/staging/gma500/psb_device.c
drivers/staging/gma500/psb_drv.c
drivers/staging/gma500/psb_drv.h

index 680f1bbf076657bbf93427e812dee0d2d6e48e24..3729a97f2327b317d1e6f1eb8eb4dae91e572ccc 100644 (file)
@@ -319,7 +319,7 @@ static void cdv_get_core_freq(struct drm_device *dev)
 static int cdv_chip_setup(struct drm_device *dev)
 {
        cdv_get_core_freq(dev);
-       intel_opregion_init(dev);
+       gma_intel_opregion_init(dev);
        psb_intel_init_bios(dev);
        return 0;
 }
index 824096510d4a940ad74aed974192733f60ddb070..d2e60376982f38e9a3f5c1bb84e2a039ca82ba5f 100644 (file)
@@ -47,7 +47,7 @@ struct opregion_acpi {
        /*FIXME: add it later*/
 } __packed;
 
-int intel_opregion_init(struct drm_device *dev)
+int gma_intel_opregion_init(struct drm_device *dev)
 {
        struct drm_psb_private *dev_priv = dev->dev_private;
        u32 opregion_phy;
@@ -71,7 +71,7 @@ int intel_opregion_init(struct drm_device *dev)
        return 0;
 }
 
-int intel_opregion_exit(struct drm_device *dev)
+int gma_intel_opregion_exit(struct drm_device *dev)
 {
        struct drm_psb_private *dev_priv = dev->dev_private;
        if (dev_priv->lid_state)
index 0774c06782e9577c853249c76d352996385bd3d3..e26a176ad26e433e5c4b840b73274e3dd6757a6d 100644 (file)
@@ -322,7 +322,7 @@ static void psb_get_core_freq(struct drm_device *dev)
 static int psb_chip_setup(struct drm_device *dev)
 {
        psb_get_core_freq(dev);
-       intel_opregion_init(dev);
+       gma_intel_opregion_init(dev);
        psb_intel_init_bios(dev);
        return 0;
 }
index 264fdf4c7a8c1d79e5a25e84c84a426760c7651e..397b6051e546f1014fb4efa4ed4d5046fd0024eb 100644 (file)
@@ -245,7 +245,7 @@ static int psb_driver_unload(struct drm_device *dev)
 
        if (dev_priv) {
                psb_lid_timer_takedown(dev_priv);
-               intel_opregion_exit(dev);
+               gma_intel_opregion_exit(dev);
 
                psb_do_takedown(dev);
 
index c19045f388123e932cc38aeaa8e3e2c855a82b3f..f5ecd6d16be5329fccbbc6ab6fdf291f6d3a7d41 100644 (file)
@@ -728,8 +728,8 @@ extern void mdfld_disable_te(struct drm_device *dev, int pipe);
 /*
  * intel_opregion.c
  */
-extern int intel_opregion_init(struct drm_device *dev);
-extern int intel_opregion_exit(struct drm_device *dev);
+extern int gma_intel_opregion_init(struct drm_device *dev);
+extern int gma_intel_opregion_exit(struct drm_device *dev);
 
 /*
  * framebuffer.c