diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2018-05-19 12:33:01 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2018-05-21 20:01:33 +0000 |
commit | 315b239c3578a1448796ba5901bf1023c511207c (patch) | |
tree | 268562b3f52fc085b3c77c7cb74e903ffd927f55 /src/southbridge/amd/sb800/sm.c | |
parent | f29a6898ec10459e49c9380b9b342e6ee633a6ce (diff) | |
download | coreboot-315b239c3578a1448796ba5901bf1023c511207c.tar.xz |
sb/amd/sb800: Get rid of device_t
Use of device_t has been abandoned in ramstage.
Change-Id: Ie48b42cf2999df075e23dc8ba185934b4e600157
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26405
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/sb800/sm.c')
-rw-r--r-- | src/southbridge/amd/sb800/sm.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/southbridge/amd/sb800/sm.c b/src/southbridge/amd/sb800/sm.c index ba9e806a1f..d4ed3ccbe8 100644 --- a/src/southbridge/amd/sb800/sm.c +++ b/src/southbridge/amd/sb800/sm.c @@ -76,7 +76,7 @@ * SB800 enables SATA by default in SMBUS Control. */ -static void sm_init(device_t dev) +static void sm_init(struct device *dev) { u8 byte; @@ -189,7 +189,7 @@ static void sm_init(device_t dev) abcfg_reg(0x98, 0xFFFFFFFF, 0X01034700); } -static int lsmbus_recv_byte(device_t dev) +static int lsmbus_recv_byte(struct device *dev) { u32 device; struct resource *res; @@ -203,7 +203,7 @@ static int lsmbus_recv_byte(device_t dev) return do_smbus_recv_byte(res->base, device); } -static int lsmbus_send_byte(device_t dev, u8 val) +static int lsmbus_send_byte(struct device *dev, u8 val) { u32 device; struct resource *res; @@ -217,7 +217,7 @@ static int lsmbus_send_byte(device_t dev, u8 val) return do_smbus_send_byte(res->base, device, val); } -static int lsmbus_read_byte(device_t dev, u8 address) +static int lsmbus_read_byte(struct device *dev, u8 address) { u32 device; struct resource *res; @@ -231,7 +231,7 @@ static int lsmbus_read_byte(device_t dev, u8 address) return do_smbus_read_byte(res->base, device, address); } -static int lsmbus_write_byte(device_t dev, u8 address, u8 val) +static int lsmbus_write_byte(struct device *dev, u8 address, u8 val) { u32 device; struct resource *res; @@ -251,7 +251,7 @@ static struct smbus_bus_operations lops_smbus_bus = { .write_byte = lsmbus_write_byte, }; -static void sb800_sm_read_resources(device_t dev) +static void sb800_sm_read_resources(struct device *dev) { struct resource *res; u8 byte; |