aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_pm.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-09-19 06:18:32 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-10-01 01:45:01 -0400
commitb14c5679dd2c87b5bd14c49c5bdd1962be2ab209 (patch)
treeb838a1c7ec2f69a2b99b41e4d60ac68559df8933 /drivers/gpu/drm/i915/intel_pm.c
parent4821ff14a32886ee95c8b2850746ec020ca65189 (diff)
drm/i915: use pointer = k[cmz...]alloc(sizeof(*pointer), ...) pattern
Done while reviewing all our allocations for fubar. Also a few errant cases of lacking () for the sizeof operator - just a bit of OCD. I've left out all the conversions that also should use kcalloc from this patch (it's only 2). Reviewed-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_pm.c')
-rw-r--r--drivers/gpu/drm/i915/intel_pm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index 4692f8cb7724..d27eda661548 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -370,7 +370,7 @@ static void intel_enable_fbc(struct drm_crtc *crtc, unsigned long interval)
370 370
371 intel_cancel_fbc_work(dev_priv); 371 intel_cancel_fbc_work(dev_priv);
372 372
373 work = kzalloc(sizeof *work, GFP_KERNEL); 373 work = kzalloc(sizeof(*work), GFP_KERNEL);
374 if (work == NULL) { 374 if (work == NULL) {
375 DRM_ERROR("Failed to allocate FBC work structure\n"); 375 DRM_ERROR("Failed to allocate FBC work structure\n");
376 dev_priv->display.enable_fbc(crtc, interval); 376 dev_priv->display.enable_fbc(crtc, interval);