Change 'device' to 'self', to be more like the rest of the code
This commit is contained in:
parent
9cccca53d8
commit
7678b59a40
@ -168,7 +168,7 @@ USB_MATCH(ukbd)
|
||||
|
||||
keyboard_switch_t *sw;
|
||||
void *arg[4];
|
||||
int unit = device_get_unit(device);
|
||||
int unit = device_get_unit(self);
|
||||
|
||||
sw = kbd_get_switch(DRIVER_NAME);
|
||||
if (sw == NULL)
|
||||
@ -177,7 +177,7 @@ USB_MATCH(ukbd)
|
||||
arg[0] = (void *)uaa;
|
||||
arg[1] = (void *)ukbd_intr;
|
||||
arg[2] = (void *)ukbd_disconnect;
|
||||
arg[3] = (void *)device;
|
||||
arg[3] = (void *)self;
|
||||
if ((*sw->probe)(unit, (void *)arg, 0))
|
||||
return (UMATCH_NONE);
|
||||
|
||||
|
@ -165,10 +165,10 @@ static driver_t __CONCAT(dname,_driver) = { \
|
||||
|
||||
#define USB_MATCH(dname) \
|
||||
static int \
|
||||
__CONCAT(dname,_match)(device_t device)
|
||||
__CONCAT(dname,_match)(device_t self)
|
||||
|
||||
#define USB_MATCH_START(dname, uaa) \
|
||||
struct usb_attach_arg *uaa = device_get_ivars(device)
|
||||
struct usb_attach_arg *uaa = device_get_ivars(self)
|
||||
|
||||
#define USB_ATTACH(dname) \
|
||||
static int \
|
||||
|
Loading…
Reference in New Issue
Block a user