]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
gma500: make init_pm callback in struct psb_op optional
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Thu, 8 Mar 2012 16:01:51 +0000 (16:01 +0000)
committerDave Airlie <airlied@redhat.com>
Sat, 10 Mar 2012 13:05:42 +0000 (13:05 +0000)
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/gma500/oaktrail_device.c
drivers/gpu/drm/gma500/power.c

index 08dcdc29d2ebc1c24ec43dfbd6e74bdd34dd7757..22def104bb4ae9637760a568c96aa9b2748b30ec 100644 (file)
@@ -176,10 +176,6 @@ int oaktrail_backlight_init(struct drm_device *dev)
  *     for power management
  */
 
-static void oaktrail_init_pm(struct drm_device *dev)
-{
-}
-
 /**
  *     oaktrail_save_display_registers -       save registers lost on suspend
  *     @dev: our DRM device
@@ -504,7 +500,6 @@ const struct psb_ops oaktrail_chip_ops = {
        .backlight_init = oaktrail_backlight_init,
 #endif
 
-       .init_pm = oaktrail_init_pm,
        .save_regs = oaktrail_save_display_registers,
        .restore_regs = oaktrail_restore_display_registers,
        .power_down = oaktrail_power_down,
index bbf635cebdbcc543b43ed24d55387728a1c3e143..994f6693549941cb6fc71033667ec9abc1b8ac94 100644 (file)
@@ -58,7 +58,8 @@ void gma_power_init(struct drm_device *dev)
        spin_lock_init(&power_ctrl_lock);
        mutex_init(&power_mutex);
 
-       dev_priv->ops->init_pm(dev);
+       if (dev_priv->ops->init_pm)
+               dev_priv->ops->init_pm(dev);
 }
 
 /**