sb/amd/cimx/sb900: Get rid of device_t
Use of device_t has been abandoned in ramstage. Change-Id: Id634edd7005db85690cdc93579c1f97588ffc5f8 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/26416 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
This commit is contained in:
parent
ee424e5941
commit
e51d731abc
|
@ -14,7 +14,7 @@
|
|||
*/
|
||||
|
||||
|
||||
#include <device/device.h> /* device_t */
|
||||
#include <device/device.h>
|
||||
#include <device/pci.h> /* device_operations */
|
||||
#include <device/pci_ids.h>
|
||||
#include <device/smbus.h> /* smbus_bus_operations */
|
||||
|
@ -73,7 +73,7 @@ static struct pci_operations lops_pci = {
|
|||
.set_subsystem = 0,
|
||||
};
|
||||
|
||||
static void lpc_enable_resources(device_t dev)
|
||||
static void lpc_enable_resources(struct device *dev)
|
||||
{
|
||||
|
||||
printk(BIOS_DEBUG, "SB900 - Late.c - lpc_enable_resources - Start.\n");
|
||||
|
@ -82,7 +82,7 @@ static void lpc_enable_resources(device_t dev)
|
|||
printk(BIOS_DEBUG, "SB900 - Late.c - lpc_enable_resources - End.\n");
|
||||
}
|
||||
|
||||
static void lpc_init(device_t dev)
|
||||
static void lpc_init(struct device *dev)
|
||||
{
|
||||
printk(BIOS_DEBUG, "SB900 - Late.c - lpc_init - Start.\n");
|
||||
/* SB Configure HPET base and enable bit */
|
||||
|
@ -266,7 +266,7 @@ static const struct pci_driver gec_driver __pci_driver = {
|
|||
};
|
||||
|
||||
|
||||
static void pcie_init(device_t dev)
|
||||
static void pcie_init(struct device *dev)
|
||||
{
|
||||
printk(BIOS_DEBUG, "SB900 - Late.c - pcie_init - Start.\n");
|
||||
//- sbPcieGppLateInit(sb_config);
|
||||
|
@ -333,7 +333,7 @@ static const struct pci_driver PORTD_driver __pci_driver = {
|
|||
/**
|
||||
* @brief SB Cimx entry point sbBeforePciInit wrapper
|
||||
*/
|
||||
static void sb900_enable(device_t dev)
|
||||
static void sb900_enable(struct device *dev)
|
||||
{
|
||||
u8 gpp_port = 0;
|
||||
struct southbridge_amd_cimx_sb900_config *sb_chip =
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#include <arch/ioapic.h>
|
||||
|
||||
|
||||
void lpc_read_resources(device_t dev)
|
||||
void lpc_read_resources(struct device *dev)
|
||||
{
|
||||
struct resource *res;
|
||||
|
||||
|
@ -73,7 +73,7 @@ void lpc_set_resources(struct device *dev)
|
|||
* @param dev the device whose children's resources are to be enabled
|
||||
*
|
||||
*/
|
||||
void lpc_enable_childrens_resources(device_t dev)
|
||||
void lpc_enable_childrens_resources(struct device *dev)
|
||||
{
|
||||
struct bus *link;
|
||||
u32 reg, reg_x;
|
||||
|
@ -85,7 +85,7 @@ void lpc_enable_childrens_resources(device_t dev)
|
|||
reg_x = pci_read_config32(dev, 0x48);
|
||||
|
||||
for (link = dev->link_list; link; link = link->next) {
|
||||
device_t child;
|
||||
struct device *child;
|
||||
for (child = link->children; child;
|
||||
child = child->sibling) {
|
||||
if (child->enabled
|
||||
|
|
|
@ -20,8 +20,8 @@
|
|||
#define SPI_ROM_ENABLE 0x02
|
||||
#define SPI_BASE_ADDRESS 0xFEC10000
|
||||
|
||||
void lpc_read_resources(device_t dev);
|
||||
void lpc_set_resources(device_t dev);
|
||||
void lpc_enable_childrens_resources(device_t dev);
|
||||
void lpc_read_resources(struct device *dev);
|
||||
void lpc_set_resources(struct device *dev);
|
||||
void lpc_enable_childrens_resources(struct device *dev);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue