Check the return value of config_intrhook_establish().
This commit is contained in:
parent
5719711f8b
commit
429b844ba6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=279557
@ -197,8 +197,10 @@ at45d_attach(device_t dev)
|
||||
/* We'll see what kind of flash we have later... */
|
||||
sc->config_intrhook.ich_func = at45d_delayed_attach;
|
||||
sc->config_intrhook.ich_arg = sc;
|
||||
if (config_intrhook_establish(&sc->config_intrhook) != 0)
|
||||
if (config_intrhook_establish(&sc->config_intrhook) != 0) {
|
||||
device_printf(dev, "config_intrhook_establish failed\n");
|
||||
return (ENOMEM);
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user