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>
This commit is contained in:
Elyes HAOUAS 2018-05-02 21:20:59 +02:00 committed by Patrick Georgi
parent b1fa2871c9
commit e18cbea8f5
1 changed files with 4 additions and 4 deletions

View File

@ -34,7 +34,7 @@
#define CARDBUS_IO_SIZE 4096 #define CARDBUS_IO_SIZE 4096
#define CARDBUS_MEM_SIZE (32 * 1024 * 1024) #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) resource_t min_size, unsigned int index, unsigned long type)
{ {
struct resource *resource; struct resource *resource;
@ -66,7 +66,7 @@ static void cardbus_record_bridge_resource(device_t dev, resource_t moving,
resource->size = min_size; 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; struct resource *resource;
resource_t min_size; 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; resource_t moving_base, moving_limit, moving;
unsigned long type; unsigned long type;
@ -149,7 +149,7 @@ void cardbus_read_resources(device_t dev)
compact_resources(dev); compact_resources(dev);
} }
void cardbus_enable_resources(device_t dev) void cardbus_enable_resources(struct device *dev)
{ {
u16 ctrl; u16 ctrl;