summaryrefslogtreecommitdiff
path: root/src/soc/intel/cannonlake/sd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/cannonlake/sd.c')
-rw-r--r--src/soc/intel/cannonlake/sd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/intel/cannonlake/sd.c b/src/soc/intel/cannonlake/sd.c
index 2c0298fd78..b69cd1a32d 100644
--- a/src/soc/intel/cannonlake/sd.c
+++ b/src/soc/intel/cannonlake/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);
if (!config->sdcard_cd_gpio)
return -1;