summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/i915_hwmon.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/i915/i915_hwmon.c')
-rw-r--r--drivers/gpu/drm/i915/i915_hwmon.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_hwmon.c b/drivers/gpu/drm/i915/i915_hwmon.c
index 7dfe1784153f..c4a799f5fe92 100644
--- a/drivers/gpu/drm/i915/i915_hwmon.c
+++ b/drivers/gpu/drm/i915/i915_hwmon.c
@@ -9,6 +9,8 @@
#include <linux/types.h>
#include <linux/units.h>
+#include <drm/intel/intel_pcode_regs.h>
+
#include "i915_drv.h"
#include "i915_hwmon.h"
#include "i915_reg.h"
@@ -915,7 +917,7 @@ void i915_hwmon_register(struct drm_i915_private *i915)
if (!IS_DGFX(i915))
return;
- hwmon = kzalloc(sizeof(*hwmon), GFP_KERNEL);
+ hwmon = kzalloc_obj(*hwmon);
if (!hwmon)
return;