cpuidle: make __cpuidle_driver_init() return void
The only value returned by __cpuidle_driver_init() is 0, so it very well may be a void function. [rjw: Changelog] Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
267d4bf8ee
commit
e437f3e373
1 changed files with 2 additions and 8 deletions
|
@ -149,10 +149,8 @@ static void cpuidle_setup_broadcast_timer(void *arg)
|
||||||
/**
|
/**
|
||||||
* __cpuidle_driver_init - initialize the driver's internal data
|
* __cpuidle_driver_init - initialize the driver's internal data
|
||||||
* @drv: a valid pointer to a struct cpuidle_driver
|
* @drv: a valid pointer to a struct cpuidle_driver
|
||||||
*
|
|
||||||
* Returns 0 on success, a negative error code otherwise.
|
|
||||||
*/
|
*/
|
||||||
static int __cpuidle_driver_init(struct cpuidle_driver *drv)
|
static void __cpuidle_driver_init(struct cpuidle_driver *drv)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
@ -179,8 +177,6 @@ static int __cpuidle_driver_init(struct cpuidle_driver *drv)
|
||||||
drv->bctimer = 1;
|
drv->bctimer = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -206,9 +202,7 @@ static int __cpuidle_register_driver(struct cpuidle_driver *drv)
|
||||||
if (cpuidle_disabled())
|
if (cpuidle_disabled())
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
||||||
ret = __cpuidle_driver_init(drv);
|
__cpuidle_driver_init(drv);
|
||||||
if (ret)
|
|
||||||
return ret;
|
|
||||||
|
|
||||||
ret = __cpuidle_set_driver(drv);
|
ret = __cpuidle_set_driver(drv);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
|
Loading…
Add table
Reference in a new issue