diff options
author | dfr <dfr@FreeBSD.org> | 2003-09-06 14:04:30 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 2003-09-06 14:04:30 +0000 |
commit | 61aeb4df2eb49c95eb96dcb5f0c5a0ed104a86c1 (patch) | |
tree | b27cb97994d7fd5328baa67ce5ef7f510b266b93 | |
parent | 8e402f19803401f8f9c1e83c06462c80dc9a0618 (diff) | |
download | FreeBSD-src-61aeb4df2eb49c95eb96dcb5f0c5a0ed104a86c1.zip FreeBSD-src-61aeb4df2eb49c95eb96dcb5f0c5a0ed104a86c1.tar.gz |
Make indentation uniform.
-rw-r--r-- | sys/pci/amdpm.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/sys/pci/amdpm.c b/sys/pci/amdpm.c index d972a47..c72ad70 100644 --- a/sys/pci/amdpm.c +++ b/sys/pci/amdpm.c @@ -151,17 +151,17 @@ amdpm_probe(device_t dev) ((did == AMDPM_DEVICEID_AMD756PM) || (did == AMDPM_DEVICEID_AMD766PM) || (did == AMDPM_DEVICEID_AMD768PM))) { - device_set_desc(dev, "AMD 756/766/768 Power Management Controller"); - - /* - * We have to do this, since the BIOS won't give us the - * resource info (not mine, anyway). - */ - base = pci_read_config(dev, AMDPCI_PMBASE, 4); - base &= 0xff00; - bus_set_resource(dev, SYS_RES_IOPORT, AMDPCI_PMBASE, - base+0xe0, 32); - return (0); + device_set_desc(dev, "AMD 756/766/768 Power Management Controller"); + + /* + * We have to do this, since the BIOS won't give us the + * resource info (not mine, anyway). + */ + base = pci_read_config(dev, AMDPCI_PMBASE, 4); + base &= 0xff00; + bus_set_resource(dev, SYS_RES_IOPORT, AMDPCI_PMBASE, + base+0xe0, 32); + return (0); } if ((vid == AMDPM_VENDORID_NVIDIA) && @@ -211,7 +211,7 @@ amdpm_attach(device_t dev) /* Allocate a new smbus device */ amdpm_sc->smbus = device_add_child(dev, "smbus", -1); if (!amdpm_sc->smbus) - return (EINVAL); + return (EINVAL); bus_generic_attach(dev); @@ -224,13 +224,13 @@ amdpm_detach(device_t dev) struct amdpm_softc *amdpm_sc = device_get_softc(dev); if (amdpm_sc->smbus) { - device_delete_child(dev, amdpm_sc->smbus); - amdpm_sc->smbus = NULL; + device_delete_child(dev, amdpm_sc->smbus); + amdpm_sc->smbus = NULL; } if (amdpm_sc->res) - bus_release_resource(dev, SYS_RES_IOPORT, amdpm_sc->rid, - amdpm_sc->res); + bus_release_resource(dev, SYS_RES_IOPORT, amdpm_sc->rid, + amdpm_sc->res); return (0); } |