From 2221e16703bf5bf813a98926b968bd5b28eb5d70 Mon Sep 17 00:00:00 2001 From: vehemens Date: Sun, 8 Mar 2009 18:17:15 -0700 Subject: FreeBSD use kdev for kernel device name Signed-off-by: Robert Noland --- bsd-core/radeon_drv.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'bsd-core/radeon_drv.c') diff --git a/bsd-core/radeon_drv.c b/bsd-core/radeon_drv.c index 46bccb39..7bc77daa 100644 --- a/bsd-core/radeon_drv.c +++ b/bsd-core/radeon_drv.c @@ -77,31 +77,31 @@ static void radeon_configure(struct drm_device *dev) } static int -radeon_probe(device_t dev) +radeon_probe(device_t kdev) { - return drm_probe(dev, radeon_pciidlist); + return drm_probe(kdev, radeon_pciidlist); } static int -radeon_attach(device_t nbdev) +radeon_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); radeon_configure(dev); - return drm_attach(nbdev, radeon_pciidlist); + return drm_attach(kdev, radeon_pciidlist); } static int -radeon_detach(device_t nbdev) +radeon_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); -- cgit v1.2.3