drm/i915/huc: Fix includes in intel_huc.c
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Fri, 6 Oct 2017 09:02:09 +0000 (09:02 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 6 Oct 2017 15:01:15 +0000 (16:01 +0100)
Fix includes order and make sure we only include required headers.
While here, make intel_huc.h header self-contained.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20171006090209.67852-1-michal.wajdeczko@intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_huc.c
drivers/gpu/drm/i915/intel_huc.h

index 3f796fed35afdc9b3db7f155aef764ea584c8f0b..4b4cf56d29ad0459ee23c1b4ac0344142b308397 100644 (file)
  * IN THE SOFTWARE.
  *
  */
-#include <linux/firmware.h>
+
+#include <linux/types.h>
+
+#include "intel_huc.h"
 #include "i915_drv.h"
-#include "intel_uc.h"
 
 /**
  * DOC: HuC Firmware
index d58422b0c85f5916a9b802c4b006b3a0229c9e3d..aaa38b9e58171f5fb84d944a04cae3e4bb2f0d59 100644 (file)
@@ -25,6 +25,8 @@
 #ifndef _INTEL_HUC_H_
 #define _INTEL_HUC_H_
 
+#include "intel_uc_fw.h"
+
 struct intel_huc {
        /* Generic uC firmware management */
        struct intel_uc_fw fw;