src: Get rid of device_t
Use of device_t is deprecated. Change-Id: I6adc0429ae9ecc8f726d6167a6458d9333dc515f Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/27036 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
committed by
Patrick Georgi
parent
c8a649c08f
commit
68c851bcd7
@@ -31,7 +31,11 @@ void pmc_set_disb(void)
|
||||
{
|
||||
/* Set the DISB after DRAM init */
|
||||
u32 disb_val;
|
||||
device_t dev = PCH_DEV_PMC;
|
||||
#if defined(__SIMPLE_DEVICE__)
|
||||
pci_devfn_t dev = PCH_DEV_PMC;
|
||||
#else
|
||||
struct device *dev = PCH_DEV_PMC;
|
||||
#endif
|
||||
|
||||
disb_val = pci_read_config32(dev, GEN_PMCON_A);
|
||||
disb_val |= DISB;
|
||||
|
Reference in New Issue
Block a user