diff options
author | Jonathan Kollasch <jakllsch@kollasch.net> | 2010-10-29 15:56:04 +0000 |
---|---|---|
committer | Jonathan A. Kollasch <jakllsch@kollasch.net> | 2010-10-29 15:56:04 +0000 |
commit | c7f3f80cf06165fc4e645a88590d7d8c982395de (patch) | |
tree | 22e37525d5ff3b75eaabf14ce528daf9dbbaaca8 /src/southbridge/nvidia/ck804/ck804_sata.c | |
parent | bb42300f036c1bd1b047ba89104e97ed565f12ef (diff) |
Deduplicate ck804 subsystem-setting functionality.
Signed-off-by: Jonathan Kollasch <jakllsch@kollasch.net>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6002 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/southbridge/nvidia/ck804/ck804_sata.c')
-rw-r--r-- | src/southbridge/nvidia/ck804/ck804_sata.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/southbridge/nvidia/ck804/ck804_sata.c b/src/southbridge/nvidia/ck804/ck804_sata.c index aee6bec5cc..b3ec80422d 100644 --- a/src/southbridge/nvidia/ck804/ck804_sata.c +++ b/src/southbridge/nvidia/ck804/ck804_sata.c @@ -164,16 +164,6 @@ static void sata_init(struct device *dev) } -static void lpci_set_subsystem(device_t dev, unsigned vendor, unsigned device) -{ - pci_write_config32(dev, 0x40, - ((device & 0xffff) << 16) | (vendor & 0xffff)); -} - -static struct pci_operations lops_pci = { - .set_subsystem = lpci_set_subsystem, -}; - static struct device_operations sata_ops = { .read_resources = pci_dev_read_resources, .set_resources = pci_dev_set_resources, @@ -181,7 +171,7 @@ static struct device_operations sata_ops = { // .enable = ck804_enable, .init = sata_init, .scan_bus = 0, - .ops_pci = &lops_pci, + .ops_pci = &ck804_pci_ops, }; static const struct pci_driver sata0_driver __pci_driver = { |