diff options
author | Zheng Bao <zheng.bao@amd.com> | 2010-06-19 06:55:17 +0000 |
---|---|---|
committer | Zheng Bao <Zheng.Bao@amd.com> | 2010-06-19 06:55:17 +0000 |
commit | bfca8efab37497dba0753f38d914a759b007be0e (patch) | |
tree | 35ae6e5aae97a69e8a5f113278eb07d25b64f814 /src/southbridge/amd/sb700/sb700_sm.c | |
parent | 7eac4450b32f6961d5abd8dae32c5eefc1a07c11 (diff) |
Trivial. Cleaning up about the blank line.
Signed-off-by: Zheng Bao <zheng.bao@amd.com>
Acked-by: Zheng Bao <zheng.bao@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5634 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/southbridge/amd/sb700/sb700_sm.c')
-rw-r--r-- | src/southbridge/amd/sb700/sb700_sm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/southbridge/amd/sb700/sb700_sm.c b/src/southbridge/amd/sb700/sb700_sm.c index d053aff0fd..65ccce9199 100644 --- a/src/southbridge/amd/sb700/sb700_sm.c +++ b/src/southbridge/amd/sb700/sb700_sm.c @@ -72,7 +72,6 @@ static void sm_init(device_t dev) dword |= 1 << 13; pci_write_config16(dev, 0x64, dword); - /* rrg:K8 INTR Enable (BIOS should set this bit after PIC initialization) */ /* rpr 2.1 Enabling Legacy Interrupt */ dword = pci_read_config8(dev, 0x62); @@ -282,6 +281,7 @@ static int lsmbus_write_byte(device_t dev, u8 address, u8 val) return do_smbus_write_byte(res->base, device, address, val); } + static struct smbus_bus_operations lops_smbus_bus = { .recv_byte = lsmbus_recv_byte, .send_byte = lsmbus_send_byte, @@ -335,10 +335,9 @@ static void sb700_sm_read_resources(device_t dev) res->gran = 8; res->flags = IORESOURCE_IO | IORESOURCE_FIXED; - compact_resources(dev); - } + static void sb700_sm_set_resources(struct device *dev) { struct resource *res; @@ -346,7 +345,6 @@ static void sb700_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; @@ -365,6 +363,7 @@ static void sb700_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 = sb700_sm_read_resources, .set_resources = sb700_sm_set_resources, @@ -374,6 +373,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, |