twsi: Use config_intrhook_oneshot instead of config_intrhook_establish
Suggested by: ian MFC after: 1 month X-MFC-With: 345948
This commit is contained in:
parent
3f5e78d74d
commit
99cbdc45aa
@ -621,7 +621,6 @@ twsi_intr_start(void *pdev)
|
||||
device_printf(pdev, "unable to register interrupt handler\n");
|
||||
|
||||
sc->have_intr = true;
|
||||
config_intrhook_disestablish(&sc->intr_hook);
|
||||
}
|
||||
|
||||
int
|
||||
@ -648,11 +647,7 @@ twsi_attach(device_t dev)
|
||||
}
|
||||
bus_generic_attach(dev);
|
||||
|
||||
sc->intr_hook.ich_func = twsi_intr_start;
|
||||
sc->intr_hook.ich_arg = dev;
|
||||
|
||||
if (config_intrhook_establish(&sc->intr_hook) != 0)
|
||||
return (ENOMEM);
|
||||
config_intrhook_oneshot(twsi_intr_start, dev);
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
@ -55,7 +55,6 @@ struct twsi_softc {
|
||||
clk_t clk_reg;
|
||||
#endif
|
||||
void * intrhand;
|
||||
struct intr_config_hook intr_hook;
|
||||
bool have_intr;
|
||||
|
||||
struct iic_msg *msg;
|
||||
|
Loading…
Reference in New Issue
Block a user