diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2018-05-02 21:20:59 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-05-04 10:16:20 +0000 |
commit | e18cbea8f5523347bc567a4399c11040d64793c3 (patch) | |
tree | 310cc56cde9cabb5cfa8b9df38d2f4fb0ba3ddad /src/device/cardbus_device.c | |
parent | b1fa2871c9a85e446bfe875cdca7ebdddfa8cf18 (diff) | |
download | coreboot-e18cbea8f5523347bc567a4399c11040d64793c3.tar.xz |
src/device/cardbus_device.c: Get rid of device_t
Use of `device_t` has been abandoned in ramstage.
Change-Id: I6f3efd8c9be7f9fb83b373fbee311b06cde54181
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26004
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/device/cardbus_device.c')
-rw-r--r-- | src/device/cardbus_device.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/device/cardbus_device.c b/src/device/cardbus_device.c index 19e9900216..2924f89765 100644 --- a/src/device/cardbus_device.c +++ b/src/device/cardbus_device.c @@ -34,7 +34,7 @@ #define CARDBUS_IO_SIZE 4096 #define CARDBUS_MEM_SIZE (32 * 1024 * 1024) -static void cardbus_record_bridge_resource(device_t dev, resource_t moving, +static void cardbus_record_bridge_resource(struct device *dev, resource_t moving, resource_t min_size, unsigned int index, unsigned long type) { struct resource *resource; @@ -66,7 +66,7 @@ static void cardbus_record_bridge_resource(device_t dev, resource_t moving, resource->size = min_size; } -static void cardbus_size_bridge_resource(device_t dev, unsigned int index) +static void cardbus_size_bridge_resource(struct device *dev, unsigned int index) { struct resource *resource; resource_t min_size; @@ -83,7 +83,7 @@ static void cardbus_size_bridge_resource(device_t dev, unsigned int index) } } -void cardbus_read_resources(device_t dev) +void cardbus_read_resources(struct device *dev) { resource_t moving_base, moving_limit, moving; unsigned long type; @@ -149,7 +149,7 @@ void cardbus_read_resources(device_t dev) compact_resources(dev); } -void cardbus_enable_resources(device_t dev) +void cardbus_enable_resources(struct device *dev) { u16 ctrl; |