summaryrefslogtreecommitdiffstats
path: root/src/southbridge/amd/sb700/lpc.c
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-05-19 12:37:54 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2018-05-21 20:00:52 +0000
commitf29a6898ec10459e49c9380b9b342e6ee633a6ce (patch)
tree9773f705f0fdcd6885ea19ec7eaf5078a82047d6 /src/southbridge/amd/sb700/lpc.c
parent7f55810cf0e4d415cc71d7c58094040e49e14a37 (diff)
downloadcoreboot-f29a6898ec10459e49c9380b9b342e6ee633a6ce.tar.gz
coreboot-f29a6898ec10459e49c9380b9b342e6ee633a6ce.tar.bz2
coreboot-f29a6898ec10459e49c9380b9b342e6ee633a6ce.zip
sb/amd/sb700: Get rid of device_t
Use of device_t has been abandoned in ramstage. Change-Id: I53acc7dd4ddf2787fc1e59d604cadc4f3b4cb49c Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/26406 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/sb700/lpc.c')
-rw-r--r--src/southbridge/amd/sb700/lpc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/southbridge/amd/sb700/lpc.c b/src/southbridge/amd/sb700/lpc.c
index a56ccf0465e6..6569e39b207a 100644
--- a/src/southbridge/amd/sb700/lpc.c
+++ b/src/southbridge/amd/sb700/lpc.c
@@ -32,11 +32,11 @@
#include <cpu/amd/powernow.h>
#include "sb700.h"
-static void lpc_init(device_t dev)
+static void lpc_init(struct device *dev)
{
u8 byte;
u32 dword;
- device_t sm_dev;
+ struct device *sm_dev;
printk(BIOS_SPEW, "%s\n", __func__);
@@ -82,7 +82,7 @@ static void lpc_init(device_t dev)
setup_i8254(); /* Initialize i8254 timers */
}
-static void sb700_lpc_read_resources(device_t dev)
+static void sb700_lpc_read_resources(struct device *dev)
{
struct resource *res;
@@ -129,7 +129,7 @@ static void sb700_lpc_set_resources(struct device *dev)
* @param dev the device whose children's resources are to be enabled
*
*/
-static void sb700_lpc_enable_childrens_resources(device_t dev)
+static void sb700_lpc_enable_childrens_resources(struct device *dev)
{
struct bus *link;
u32 reg, reg_x;
@@ -141,7 +141,7 @@ static void sb700_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
@@ -242,7 +242,7 @@ static void sb700_lpc_enable_childrens_resources(device_t dev)
pci_write_config8(dev, 0x74, wiosize);
}
-static void sb700_lpc_enable_resources(device_t dev)
+static void sb700_lpc_enable_resources(struct device *dev)
{
pci_dev_enable_resources(dev);
sb700_lpc_enable_childrens_resources(dev);
@@ -250,7 +250,7 @@ static void sb700_lpc_enable_resources(device_t dev)
#if IS_ENABLED(CONFIG_HAVE_ACPI_TABLES)
-static void southbridge_acpi_fill_ssdt_generator(device_t device) {
+static void southbridge_acpi_fill_ssdt_generator(struct device *device) {
amd_generate_powernow(ACPI_CPU_CONTROL, 6, 1);
}