From ff492b18550d6e24cdaffbb265f2fecc294486a3 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Fri, 24 Sep 2010 23:37:25 +0000 Subject: Make SB600/SB700 more similar for easier diffs (trivial). Also fixes random whitespace issues, typos, etc. Signed-off-by: Uwe Hermann Acked-by: Uwe Hermann git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5837 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/southbridge/amd/sb600/sb600_sm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/southbridge/amd/sb600/sb600_sm.c') diff --git a/src/southbridge/amd/sb600/sb600_sm.c b/src/southbridge/amd/sb600/sb600_sm.c index 6a18bfeea5..66e93e6e33 100644 --- a/src/southbridge/amd/sb600/sb600_sm.c +++ b/src/southbridge/amd/sb600/sb600_sm.c @@ -327,10 +327,10 @@ static void sb600_sm_read_resources(device_t dev) res->gran = 8; res->flags = IORESOURCE_IO | IORESOURCE_FIXED; - compact_resources(dev); } + static void sb600_sm_set_resources(struct device *dev) { struct resource *res; @@ -338,7 +338,6 @@ static void sb600_sm_set_resources(struct device *dev) pci_dev_set_resources(dev); - /* rpr2.14: Make HPET MMIO decoding controlled by the memory enable bit in command register of LPC ISA bridage */ byte = pm_ioread(0x52); byte |= 1 << 6; @@ -357,6 +356,7 @@ static void sb600_sm_set_resources(struct device *dev) static struct pci_operations lops_pci = { .set_subsystem = pci_dev_set_subsystem, }; + static struct device_operations smbus_ops = { .read_resources = sb600_sm_read_resources, .set_resources = sb600_sm_set_resources, @@ -367,6 +367,7 @@ static struct device_operations smbus_ops = { .ops_pci = &lops_pci, .ops_smbus_bus = &lops_smbus_bus, }; + static const struct pci_driver smbus_driver __pci_driver = { .ops = &smbus_ops, .vendor = PCI_VENDOR_ID_ATI, -- cgit v1.2.3