summaryrefslogtreecommitdiffstats
path: root/src/soc/intel/broadwell/igd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/broadwell/igd.c')
-rw-r--r--src/soc/intel/broadwell/igd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/soc/intel/broadwell/igd.c b/src/soc/intel/broadwell/igd.c
index 9107b23eb90f..dab2d1575014 100644
--- a/src/soc/intel/broadwell/igd.c
+++ b/src/soc/intel/broadwell/igd.c
@@ -298,7 +298,7 @@ static int gtt_poll(u32 reg, u32 mask, u32 value)
static void igd_setup_panel(struct device *dev)
{
- config_t *conf = dev->chip_info;
+ config_t *conf = config_of(dev);
u32 reg32;
/* Setup Digital Port Hotplug */
@@ -349,7 +349,7 @@ static void igd_setup_panel(struct device *dev)
static int igd_get_cdclk_haswell(u32 *const cdsel, int *const inform_pc,
struct device *const dev)
{
- const config_t *const conf = dev->chip_info;
+ const config_t *const conf = config_of(dev);
int cdclk = conf->cdclk;
/* Check for ULX GT1 or GT2 */
@@ -383,7 +383,7 @@ static int igd_get_cdclk_broadwell(u32 *const cdsel, int *const inform_pc,
struct device *const dev)
{
static const u32 cdsel_by_cdclk[] = { 0, 2, 0, 1, 3 };
- const config_t *const conf = dev->chip_info;
+ const config_t *const conf = config_of(dev);
int cdclk = conf->cdclk;
/* Check for ULX */