[coreboot-gerrit] Change in coreboot[master]: sb/ricoh/rl5c476: Get rid of device_t

Elyes HAOUAS (Code Review) gerrit at coreboot.org
Sat May 19 10:52:45 CEST 2018


Elyes HAOUAS has uploaded this change for review. ( https://review.coreboot.org/26399


Change subject: sb/ricoh/rl5c476: Get rid of device_t
......................................................................

sb/ricoh/rl5c476: Get rid of device_t

Use of device_t has been abandoned in ramstage.

Change-Id: I04a1fc27f67555132667e42f14fd0263a18b56c6
Signed-off-by: Elyes HAOUAS <ehaouas at noos.fr>
---
M src/southbridge/ricoh/rl5c476/rl5c476.c
1 file changed, 5 insertions(+), 5 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/99/26399/1

diff --git a/src/southbridge/ricoh/rl5c476/rl5c476.c b/src/southbridge/ricoh/rl5c476/rl5c476.c
index 2a73ab1..ff634bd 100644
--- a/src/southbridge/ricoh/rl5c476/rl5c476.c
+++ b/src/southbridge/ricoh/rl5c476/rl5c476.c
@@ -28,7 +28,7 @@
 static int enable_cf_boot = 0;
 static unsigned int cf_base;
 
-static void rl5c476_init(device_t dev)
+static void rl5c476_init(struct device *dev)
 {
 	pc16reg_t *pc16;
 	unsigned char *base;
@@ -158,7 +158,7 @@
 	*cptr = 0x41;
 }
 
-static void rl5c476_read_resources(device_t dev)
+static void rl5c476_read_resources(struct device *dev)
 {
 
 	struct resource *resource;
@@ -177,7 +177,7 @@
 	cardbus_read_resources(dev);
 }
 
-static void rl5c476_set_resources(device_t dev)
+static void rl5c476_set_resources(struct device *dev)
 {
 	struct resource *resource;
 	printk(BIOS_DEBUG, "%s In set resources\n",dev_path(dev));
@@ -194,7 +194,7 @@
 
 }
 
-static void rl5c476_set_subsystem(device_t dev, unsigned vendor, unsigned device)
+static void rl5c476_set_subsystem(struct device *dev, unsigned vendor, unsigned device)
 {
 	u16 miscreg = pci_read_config16(dev, 0x82);
 	/* Enable subsystem id register writes */
@@ -225,7 +225,7 @@
 	.device = PCI_DEVICE_ID_RICOH_RL5C476,
 };
 
-static void southbridge_init(device_t dev)
+static void southbridge_init(struct device *dev)
 {
 	struct southbridge_ricoh_rl5c476_config *conf = dev->chip_info;
 	enable_cf_boot = conf->enable_cf;

-- 
To view, visit https://review.coreboot.org/26399
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I04a1fc27f67555132667e42f14fd0263a18b56c6
Gerrit-Change-Number: 26399
Gerrit-PatchSet: 1
Gerrit-Owner: Elyes HAOUAS <ehaouas at noos.fr>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180519/4fbb367b/attachment.html>


More information about the coreboot-gerrit mailing list