summaryrefslogtreecommitdiff
path: root/src/soc/intel/skylake/sd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/skylake/sd.c')
-rw-r--r--src/soc/intel/skylake/sd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/intel/skylake/sd.c b/src/soc/intel/skylake/sd.c
index 571d3e7b44..a24d03f98d 100644
--- a/src/soc/intel/skylake/sd.c
+++ b/src/soc/intel/skylake/sd.c
@@ -18,7 +18,7 @@
int sd_fill_soc_gpio_info(struct acpi_gpio* gpio, struct device *dev)
{
- config_t *config = dev->chip_info;
+ config_t *config = config_of(dev);
/* Nothing to write if GPIO is not set in devicetree */
if(!config->sdcard_cd_gpio_default && !config->sdcard_cd_gpio.pins[0])