MFC: Fail detach if cpufreq_unregister() fails.
Approved by: re (kensmith)
This commit is contained in:
parent
0ae31bdab7
commit
cf77aa1ce4
@ -983,6 +983,5 @@ static int
|
||||
pn_detach(device_t dev)
|
||||
{
|
||||
|
||||
cpufreq_unregister(dev);
|
||||
return (0);
|
||||
return (cpufreq_unregister(dev));
|
||||
}
|
||||
|
@ -405,8 +405,8 @@ smist_attach(device_t dev)
|
||||
static int
|
||||
smist_detach(device_t dev)
|
||||
{
|
||||
cpufreq_unregister(dev);
|
||||
return (0);
|
||||
|
||||
return (cpufreq_unregister(dev));
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user