Disabuse this driver of the notion that it needs to include

<sys/bus_private.h> to find the unit from a device_t.

Spotted by:	FlexeLint
This commit is contained in:
Poul-Henning Kamp 2002-09-28 20:56:32 +00:00
parent feea0ab05b
commit a3ae595729
2 changed files with 2 additions and 4 deletions

View File

@ -40,7 +40,6 @@
#include <sys/param.h>
#include <sys/bus_private.h>
#include <sys/bus.h>
#include <sys/cdefs.h>
#include <sys/conf.h>
@ -269,8 +268,8 @@ tdfx_attach(device_t dev) {
* voodoo cards, for the mad. The user must set the link, or use MAKEDEV.
* Why would we want that many voodoo cards anyhow?
*/
tdfx_info->devt = make_dev(&tdfx_cdev, dev->unit, 0, 0, 02660,
"3dfx%x", dev->unit);
tdfx_info->devt = make_dev(&tdfx_cdev, device_get_unit(dev),
0, 0, 02660, "3dfx%x", device_get_unit(dev));
return 0;
}

View File

@ -39,7 +39,6 @@
#include <sys/memrange.h>
#include <sys/param.h>
#include <sys/bus_private.h>
#include <sys/bus.h>
#include <sys/cdefs.h>