MFC: Fail detach if cpufreq_unregister() fails.

Approved by:	re (kensmith)
This commit is contained in:
jhb 2008-09-12 21:46:59 +00:00
parent 0ae31bdab7
commit cf77aa1ce4
2 changed files with 3 additions and 4 deletions

View File

@ -983,6 +983,5 @@ static int
pn_detach(device_t dev)
{
cpufreq_unregister(dev);
return (0);
return (cpufreq_unregister(dev));
}

View File

@ -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