soc/intel: Use config_of()
Change-Id: I0727a6b327410197cf32f598d1312737744386b3 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34328 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: David Guckian
This commit is contained in:
@@ -33,14 +33,11 @@
|
||||
|
||||
static void sd_init(struct device *dev)
|
||||
{
|
||||
struct soc_intel_braswell_config *config = dev->chip_info;
|
||||
struct soc_intel_braswell_config *config = config_of(dev);
|
||||
|
||||
printk(BIOS_SPEW, "%s/%s (%s)\n",
|
||||
__FILE__, __func__, dev_name(dev));
|
||||
|
||||
if (config == NULL)
|
||||
return;
|
||||
|
||||
if (config->sdcard_cap_low != 0 || config->sdcard_cap_high != 0) {
|
||||
printk(BIOS_DEBUG, "Overriding SD Card controller caps.\n");
|
||||
pci_write_config32(dev, CAP_OVERRIDE_LOW,
|
||||
|
Reference in New Issue
Block a user