aboutsummaryrefslogtreecommitdiff
path: root/src/southbridge/amd/sb600/sb600_sm.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2010-09-24 23:37:25 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2010-09-24 23:37:25 +0000
commitff492b18550d6e24cdaffbb265f2fecc294486a3 (patch)
treed5f123d248c2218936bf7cc87ff0f6b31cb70455 /src/southbridge/amd/sb600/sb600_sm.c
parent977b985095098fc64b223faea32141680a13c7e3 (diff)
Make SB600/SB700 more similar for easier diffs (trivial).
Also fixes random whitespace issues, typos, etc. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5837 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/southbridge/amd/sb600/sb600_sm.c')
-rw-r--r--src/southbridge/amd/sb600/sb600_sm.c5
1 files changed, 3 insertions, 2 deletions
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,