diff options
author | rnoland <rnoland@FreeBSD.org> | 2009-03-09 07:55:18 +0000 |
---|---|---|
committer | rnoland <rnoland@FreeBSD.org> | 2009-03-09 07:55:18 +0000 |
commit | 084103fa7c35965480ccfb414eba7fe760257f01 (patch) | |
tree | ec2a19738aab4e29749971884148431ddf8aeb2e /sys/dev/drm/r128_drv.c | |
parent | 7d9d797109b2cf2136f939594054bf4c04475391 (diff) | |
download | FreeBSD-src-084103fa7c35965480ccfb414eba7fe760257f01.zip FreeBSD-src-084103fa7c35965480ccfb414eba7fe760257f01.tar.gz |
Consistently use kdev for the kernel device.
Submitted by: vehemens <vehemens@verizon.net>
MFC after: 3 days
Diffstat (limited to 'sys/dev/drm/r128_drv.c')
-rw-r--r-- | sys/dev/drm/r128_drv.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/dev/drm/r128_drv.c b/sys/dev/drm/r128_drv.c index 575ca08..8aebb0c 100644 --- a/sys/dev/drm/r128_drv.c +++ b/sys/dev/drm/r128_drv.c @@ -76,22 +76,22 @@ static void r128_configure(struct drm_device *dev) } static int -r128_probe(device_t dev) +r128_probe(device_t kdev) { - return drm_probe(dev, r128_pciidlist); + return drm_probe(kdev, r128_pciidlist); } static int -r128_attach(device_t nbdev) +r128_attach(device_t kdev) { - struct drm_device *dev = device_get_softc(nbdev); + struct drm_device *dev = device_get_softc(kdev); dev->driver = malloc(sizeof(struct drm_driver_info), DRM_MEM_DRIVER, M_WAITOK | M_ZERO); r128_configure(dev); - return drm_attach(nbdev, r128_pciidlist); + return drm_attach(kdev, r128_pciidlist); } int r128_driver_load(struct drm_device * dev, unsigned long flags) @@ -100,12 +100,12 @@ int r128_driver_load(struct drm_device * dev, unsigned long flags) } static int -r128_detach(device_t nbdev) +r128_detach(device_t kdev) { - struct drm_device *dev = device_get_softc(nbdev); + struct drm_device *dev = device_get_softc(kdev); int ret; - ret = drm_detach(nbdev); + ret = drm_detach(kdev); free(dev->driver, DRM_MEM_DRIVER); |