Patchwork [4/4] pci1x2x: use cardbus_read_resources()/cardbus_enable_resources()

login
register
about
Submitter Sven Schnelle
Date 2011-04-19 19:47:18
Message ID <1303242438-13852-5-git-send-email-svens@stackframe.org>
Download mbox | patch
Permalink /patch/2888/
State Accepted
Commit r6527
Headers show

Comments

Sven Schnelle - 2011-04-19 19:47:18
Signed-off-by: Sven Schnelle <svens@stackframe.org>
---
 src/southbridge/ti/pci1x2x/pci1x2x.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
Stefan Reinauer - 2011-04-20 01:35:45
* Sven Schnelle <svens@stackframe.org> [110419 21:47]:
> Signed-off-by: Sven Schnelle <svens@stackframe.org>

What's the difference?

Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org>

Patch

diff --git a/src/southbridge/ti/pci1x2x/pci1x2x.c b/src/southbridge/ti/pci1x2x/pci1x2x.c
index a3ec35c..bc4ee89 100644
--- a/src/southbridge/ti/pci1x2x/pci1x2x.c
+++ b/src/southbridge/ti/pci1x2x/pci1x2x.c
@@ -22,6 +22,7 @@ 
 #include <device/pci.h>
 #include <device/pci_ids.h>
 #include <device/pci_ops.h>
+#include <device/cardbus.h>
 #include <console/console.h>
 #include <arch/io.h>
 #include "chip.h"
@@ -63,9 +64,9 @@  static struct pci_operations ti_pci1x2y_pci_ops = {
 };
 
 struct device_operations southbridge_ti_pci1x2x_pciops = {
-	.read_resources   = NULL, //pci_dev_read_resources,
+	.read_resources   = cardbus_read_resources,
 	.set_resources    = pci_dev_set_resources,
-	.enable_resources = pci_dev_enable_resources,
+	.enable_resources = cardbus_enable_resources,
 	.init             = ti_pci1x2y_init,
 	.scan_bus         = 0,
 	.ops_pci          = &ti_pci1x2y_pci_ops,