diff options
author | Kirill A. Shutemov <kirill.shutemov@linux.intel.com> | 2012-03-08 11:01:51 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-03-10 08:05:42 -0500 |
commit | c715bc1bf422543731b8833e899266b8be982a52 (patch) | |
tree | 608c5f281fa0a9e6c015b619d92e297500fc684b /drivers/gpu/drm/gma500 | |
parent | 4578240b48ed33f4377748701616a870fe5a1a94 (diff) |
gma500: make init_pm callback in struct psb_op optional
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>
Diffstat (limited to 'drivers/gpu/drm/gma500')
-rw-r--r-- | drivers/gpu/drm/gma500/oaktrail_device.c | 5 | ||||
-rw-r--r-- | drivers/gpu/drm/gma500/power.c | 3 |
2 files changed, 2 insertions, 6 deletions
diff --git a/drivers/gpu/drm/gma500/oaktrail_device.c b/drivers/gpu/drm/gma500/oaktrail_device.c index 08dcdc29d2eb..22def104bb4a 100644 --- a/drivers/gpu/drm/gma500/oaktrail_device.c +++ b/drivers/gpu/drm/gma500/oaktrail_device.c | |||
@@ -176,10 +176,6 @@ int oaktrail_backlight_init(struct drm_device *dev) | |||
176 | * for power management | 176 | * for power management |
177 | */ | 177 | */ |
178 | 178 | ||
179 | static void oaktrail_init_pm(struct drm_device *dev) | ||
180 | { | ||
181 | } | ||
182 | |||
183 | /** | 179 | /** |
184 | * oaktrail_save_display_registers - save registers lost on suspend | 180 | * oaktrail_save_display_registers - save registers lost on suspend |
185 | * @dev: our DRM device | 181 | * @dev: our DRM device |
@@ -504,7 +500,6 @@ const struct psb_ops oaktrail_chip_ops = { | |||
504 | .backlight_init = oaktrail_backlight_init, | 500 | .backlight_init = oaktrail_backlight_init, |
505 | #endif | 501 | #endif |
506 | 502 | ||
507 | .init_pm = oaktrail_init_pm, | ||
508 | .save_regs = oaktrail_save_display_registers, | 503 | .save_regs = oaktrail_save_display_registers, |
509 | .restore_regs = oaktrail_restore_display_registers, | 504 | .restore_regs = oaktrail_restore_display_registers, |
510 | .power_down = oaktrail_power_down, | 505 | .power_down = oaktrail_power_down, |
diff --git a/drivers/gpu/drm/gma500/power.c b/drivers/gpu/drm/gma500/power.c index bbf635cebdbc..994f66935499 100644 --- a/drivers/gpu/drm/gma500/power.c +++ b/drivers/gpu/drm/gma500/power.c | |||
@@ -58,7 +58,8 @@ void gma_power_init(struct drm_device *dev) | |||
58 | spin_lock_init(&power_ctrl_lock); | 58 | spin_lock_init(&power_ctrl_lock); |
59 | mutex_init(&power_mutex); | 59 | mutex_init(&power_mutex); |
60 | 60 | ||
61 | dev_priv->ops->init_pm(dev); | 61 | if (dev_priv->ops->init_pm) |
62 | dev_priv->ops->init_pm(dev); | ||
62 | } | 63 | } |
63 | 64 | ||
64 | /** | 65 | /** |