Skip to content

Commit

Permalink
davinci: cpuidle - remove useless initialization
Browse files Browse the repository at this point in the history
The device->state_count is initialized in the cpuidle_register_device
function.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Daniel Lezcano authored and Len Brown committed Feb 8, 2013
1 parent 36ce8d4 commit 748f117
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions arch/arm/mach-davinci/cpuidle.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 748f117

Please sign in to comment.