[coreboot-gerrit] Change in coreboot[master]: soc/qualcomm: Get rid of device_t

Elyes HAOUAS (Code Review) gerrit at coreboot.org
Fri May 25 10:02:01 CEST 2018


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


Change subject: soc/qualcomm: Get rid of device_t
......................................................................

soc/qualcomm: Get rid of device_t

Use of device_t has been abandoned in ramstage.

Change-Id: Ib7bcfefaecc053a1ed28d708a614acb81207bccf
Signed-off-by: Elyes HAOUAS <ehaouas at noos.fr>
---
M src/soc/qualcomm/ipq40xx/soc.c
M src/soc/qualcomm/ipq806x/soc.c
M src/soc/qualcomm/sdm845/soc.c
3 files changed, 9 insertions(+), 9 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/36/26536/1

diff --git a/src/soc/qualcomm/ipq40xx/soc.c b/src/soc/qualcomm/ipq40xx/soc.c
index 4889f8c..4a19544 100644
--- a/src/soc/qualcomm/ipq40xx/soc.c
+++ b/src/soc/qualcomm/ipq40xx/soc.c
@@ -44,7 +44,7 @@
 #define LINUX_REGION2_START	((uintptr_t)(ipq_mem_map->hlos2))
 #define LINUX_REGION2_START_KB	(LINUX_REGION2_START / KiB)
 
-static void soc_read_resources(device_t dev)
+static void soc_read_resources(struct device *dev)
 {
 	ipq_mem_map_t *ipq_mem_map = ((ipq_mem_map_t *)_dram);
 
@@ -58,7 +58,7 @@
 			LINUX_REGION1_SIZE_KB - RESERVED_SIZE_KB);
 }
 
-static void soc_init(device_t dev)
+static void soc_init(struct device *dev)
 {
 	/*
 	 * Do this in case console is not enabled: kernel's earlyprintk()
@@ -74,7 +74,7 @@
 	.init		= soc_init,
 };
 
-static void enable_soc_dev(device_t dev)
+static void enable_soc_dev(struct device *dev)
 {
 	dev->ops = &soc_ops;
 }
diff --git a/src/soc/qualcomm/ipq806x/soc.c b/src/soc/qualcomm/ipq806x/soc.c
index e44964f..90773af 100644
--- a/src/soc/qualcomm/ipq806x/soc.c
+++ b/src/soc/qualcomm/ipq806x/soc.c
@@ -22,7 +22,7 @@
 
 #define RESERVED_SIZE_KB	(0x01500000 / KiB)
 
-static void soc_read_resources(device_t dev)
+static void soc_read_resources(struct device *dev)
 {
 	/* Reserve bottom 0x150_0000 bytes for NSS, SMEM, etc. */
 	reserved_ram_resource(dev, 0, (uintptr_t)_dram / KiB, RESERVED_SIZE_KB);
@@ -30,7 +30,7 @@
 		     (CONFIG_DRAM_SIZE_MB * KiB) - RESERVED_SIZE_KB);
 }
 
-static void soc_init(device_t dev)
+static void soc_init(struct device *dev)
 {
 	/*
 	 * Do this in case console is not enabled: kernel's earlyprintk()
@@ -46,7 +46,7 @@
 	.init		= soc_init,
 };
 
-static void enable_soc_dev(device_t dev)
+static void enable_soc_dev(struct device *dev)
 {
 	dev->ops = &soc_ops;
 }
diff --git a/src/soc/qualcomm/sdm845/soc.c b/src/soc/qualcomm/sdm845/soc.c
index 16f3655..56e2c84 100644
--- a/src/soc/qualcomm/sdm845/soc.c
+++ b/src/soc/qualcomm/sdm845/soc.c
@@ -19,14 +19,14 @@
 #include <soc/mmu.h>
 #include <soc/symbols.h>
 
-static void soc_read_resources(device_t dev)
+static void soc_read_resources(struct device *dev)
 {
 	ram_resource(dev, 0, (uintptr_t)_dram / KiB, DRAMSIZE4GB / KiB);
 	reserved_ram_resource(dev, 1, (uintptr_t)_dram_reserved / KiB,
 				_dram_reserved_size / KiB);
 }
 
-static void soc_init(device_t dev)
+static void soc_init(struct device *dev)
 {
 
 }
@@ -36,7 +36,7 @@
 	.init = soc_init,
 };
 
-static void enable_soc_dev(device_t dev)
+static void enable_soc_dev(struct device *dev)
 {
 	dev->ops = &soc_ops;
 }

-- 
To view, visit https://review.coreboot.org/26536
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: Ib7bcfefaecc053a1ed28d708a614acb81207bccf
Gerrit-Change-Number: 26536
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/20180525/3e998db1/attachment.html>


More information about the coreboot-gerrit mailing list