diff options
| author | Weongyo Jeong <weongyo@FreeBSD.org> | 2010-03-11 01:35:38 +0000 |
|---|---|---|
| committer | Weongyo Jeong <weongyo@FreeBSD.org> | 2010-03-11 01:35:38 +0000 |
| commit | 8833bb3072c3b3608411f95b8d0973869ff6f380 (patch) | |
| tree | 1c92a1755f5f87b7590fb9c3daaa2d7a4e161665 /sys/dev/siba | |
| parent | 503969d196ebdd5918e29d9cc6e6ce90699e08ab (diff) | |
Notes
Diffstat (limited to 'sys/dev/siba')
| -rw-r--r-- | sys/dev/siba/siba_core.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/siba/siba_core.c b/sys/dev/siba/siba_core.c index 44eaef5241a3..99a9fe9bfb6c 100644 --- a/sys/dev/siba/siba_core.c +++ b/sys/dev/siba/siba_core.c @@ -2031,11 +2031,11 @@ siba_pcie_mdio_write(struct siba_pci *spc, uint8_t device, uint8_t address, uint32_t siba_dma_translation(device_t dev) { - struct siba_dev_softc *sd = device_get_ivars(dev); - struct siba_softc *siba = sd->sd_bus; - KASSERT(siba->siba_type == SIBA_TYPE_PCI, - ("unsupported bustype %d\n", siba->siba_type)); + KASSERT(device_get_ivars(dev)->sd_bus->siba_type == SIBA_TYPE_PCI, + ("unsupported bustype %d\n", + device_get_ivars(dev)->sd_bus->siba_type)); + return (SIBA_PCI_DMA); } |
