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:
Elyes HAOUAS 2018-05-19 17:01:24 +02:00 committed by Kyösti Mälkki
parent ee424e5941
commit e51d731abc
3 changed files with 11 additions and 11 deletions

View File

@ -14,7 +14,7 @@
*/ */
#include <device/device.h> /* device_t */ #include <device/device.h>
#include <device/pci.h> /* device_operations */ #include <device/pci.h> /* device_operations */
#include <device/pci_ids.h> #include <device/pci_ids.h>
#include <device/smbus.h> /* smbus_bus_operations */ #include <device/smbus.h> /* smbus_bus_operations */
@ -73,7 +73,7 @@ static struct pci_operations lops_pci = {
.set_subsystem = 0, .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"); 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"); 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"); printk(BIOS_DEBUG, "SB900 - Late.c - lpc_init - Start.\n");
/* SB Configure HPET base and enable bit */ /* 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"); printk(BIOS_DEBUG, "SB900 - Late.c - pcie_init - Start.\n");
//- sbPcieGppLateInit(sb_config); //- sbPcieGppLateInit(sb_config);
@ -333,7 +333,7 @@ static const struct pci_driver PORTD_driver __pci_driver = {
/** /**
* @brief SB Cimx entry point sbBeforePciInit wrapper * @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; u8 gpp_port = 0;
struct southbridge_amd_cimx_sb900_config *sb_chip = struct southbridge_amd_cimx_sb900_config *sb_chip =

View File

@ -19,7 +19,7 @@
#include <arch/ioapic.h> #include <arch/ioapic.h>
void lpc_read_resources(device_t dev) void lpc_read_resources(struct device *dev)
{ {
struct resource *res; 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 * @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; struct bus *link;
u32 reg, reg_x; u32 reg, reg_x;
@ -85,7 +85,7 @@ void lpc_enable_childrens_resources(device_t dev)
reg_x = pci_read_config32(dev, 0x48); reg_x = pci_read_config32(dev, 0x48);
for (link = dev->link_list; link; link = link->next) { for (link = dev->link_list; link; link = link->next) {
device_t child; struct device *child;
for (child = link->children; child; for (child = link->children; child;
child = child->sibling) { child = child->sibling) {
if (child->enabled if (child->enabled

View File

@ -20,8 +20,8 @@
#define SPI_ROM_ENABLE 0x02 #define SPI_ROM_ENABLE 0x02
#define SPI_BASE_ADDRESS 0xFEC10000 #define SPI_BASE_ADDRESS 0xFEC10000
void lpc_read_resources(device_t dev); void lpc_read_resources(struct device *dev);
void lpc_set_resources(device_t dev); void lpc_set_resources(struct device *dev);
void lpc_enable_childrens_resources(device_t dev); void lpc_enable_childrens_resources(struct device *dev);
#endif #endif