Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 748f1177 authored by Daniel Lezcano's avatar Daniel Lezcano Committed by Len Brown
Browse files

davinci: cpuidle - remove useless initialization



The device->state_count is initialized in the cpuidle_register_device
function.

Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: default avatarSekhar Nori <nsekhar@ti.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 36ce8d4f
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -96,8 +96,6 @@ static int __init davinci_cpuidle_probe(struct platform_device *pdev)

	ddr2_pdown = pdata->ddr2_pdown;

	device->state_count = DAVINCI_CPUIDLE_MAX_STATES;

	ret = cpuidle_register_driver(&davinci_idle_driver);
	if (ret) {
		dev_err(&pdev->dev, "failed to register driver\n");