diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2018-05-19 14:09:33 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2018-05-21 20:00:20 +0000 |
commit | 7f55810cf0e4d415cc71d7c58094040e49e14a37 (patch) | |
tree | 60e7c8e97899310123223160b9bfc2818b715cc3 /src/southbridge/amd/sb600/hda.c | |
parent | 7a4d41aa2d8dc94aff22803b23159321687d7153 (diff) |
sb/amd/sb600: Get rid of device_t
Use of device_t has been abandoned in ramstage.
Change-Id: I587b32e33af72a37be8299b9db2ce26ba825a689
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26407
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/southbridge/amd/sb600/hda.c')
-rw-r--r-- | src/southbridge/amd/sb600/hda.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/southbridge/amd/sb600/hda.c b/src/southbridge/amd/sb600/hda.c index bb2b2b1c25..367866f11f 100644 --- a/src/southbridge/amd/sb600/hda.c +++ b/src/southbridge/amd/sb600/hda.c @@ -150,7 +150,7 @@ static u32 cim_verb_data[] = { static u32 find_verb(u32 viddid, u32 ** verb) { - device_t azalia_dev = dev_find_slot(0, PCI_DEVFN(0x14, 2)); + struct device *azalia_dev = dev_find_slot(0, PCI_DEVFN(0x14, 2)); struct southbridge_amd_sb600_config *cfg = (struct southbridge_amd_sb600_config *)azalia_dev->chip_info; if (!cfg) @@ -265,7 +265,7 @@ static void hda_init(struct device *dev) void *base; struct resource *res; u32 codec_mask; - device_t sm_dev; + struct device *sm_dev; /* Enable azalia - PM_io 0x59[4], disable ac97 - PM_io 0x59[1..0] */ pm_iowrite(0x59, 0xB); |