[coreboot-gerrit] Change in ...coreboot[master]: sb/intel/lynxpoint/usb_ehci.c: Don't use device_t

HAOUAS Elyes (Code Review) gerrit at coreboot.org
Thu Nov 29 16:28:06 CET 2018


HAOUAS Elyes has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/29933


Change subject: sb/intel/lynxpoint/usb_ehci.c: Don't use device_t
......................................................................

sb/intel/lynxpoint/usb_ehci.c: Don't use device_t

Use of device_t is deprecated.

Change-Id: If2c24bbe6181ea6cf484c33a9fbf119f853efcf4
Signed-off-by: Elyes HAOUAS <ehaouas at noos.fr>
---
M src/southbridge/intel/lynxpoint/usb_ehci.c
1 file changed, 4 insertions(+), 3 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/33/29933/1

diff --git a/src/southbridge/intel/lynxpoint/usb_ehci.c b/src/southbridge/intel/lynxpoint/usb_ehci.c
index e2486cf..7f300d6 100644
--- a/src/southbridge/intel/lynxpoint/usb_ehci.c
+++ b/src/southbridge/intel/lynxpoint/usb_ehci.c
@@ -25,7 +25,7 @@
 
 #ifdef __SMM__
 
-void usb_ehci_disable(device_t dev)
+void usb_ehci_disable(pci_devfn_t dev)
 {
 	u16 reg16;
 	u32 reg32;
@@ -57,7 +57,7 @@
 }
 
 /* Handler for EHCI controller on entry to S3/S4/S5 */
-void usb_ehci_sleep_prepare(device_t dev, u8 slp_typ)
+void usb_ehci_sleep_prepare(pci_devfn_t dev, u8 slp_typ)
 {
 	u32 reg32;
 	u8 *bar0_base;
@@ -164,7 +164,8 @@
 	printk(BIOS_DEBUG, "done.\n");
 }
 
-static void usb_ehci_set_subsystem(device_t dev, unsigned vendor, unsigned device)
+static void usb_ehci_set_subsystem(struct device *dev, unsigned int vendor,
+				   unsigned int device)
 {
 	u8 access_cntl;
 

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

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


More information about the coreboot-gerrit mailing list