summaryrefslogtreecommitdiff
path: root/src/soc/intel/baytrail/sd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/baytrail/sd.c')
-rw-r--r--src/soc/intel/baytrail/sd.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/soc/intel/baytrail/sd.c b/src/soc/intel/baytrail/sd.c
index cbdb7bb181..dcb20734e3 100644
--- a/src/soc/intel/baytrail/sd.c
+++ b/src/soc/intel/baytrail/sd.c
@@ -32,10 +32,7 @@
static void sd_init(struct device *dev)
{
- struct soc_intel_baytrail_config *config = dev->chip_info;
-
- if (config == NULL)
- return;
+ struct soc_intel_baytrail_config *config = config_of(dev);
if (config->sdcard_cap_low != 0 || config->sdcard_cap_high != 0) {
printk(BIOS_DEBUG, "Overriding SD Card controller caps.\n");