acpi_pad: fix error checks
authorChen Gong <gong.chen@linux.intel.com>
Mon, 14 Dec 2009 01:42:28 +0000 (09:42 +0800)
committerLen Brown <len.brown@intel.com>
Thu, 31 Dec 2009 00:24:36 +0000 (19:24 -0500)
commit3b8cb427e9281790f36e847e46cb1d005a50cec0
treea77f28a9f8ec39c0d2b026e7952b5a989b93ba72
parent22763c5cf3690a681551162c15d34d935308c8d7
acpi_pad: fix error checks

There are some fixes listed below:
1. When met a bogus BIOS, the return value of cpu number maybe is
   a negative value so that acpi_pad_pur get an unexpected result.
2. the return value of function acpi_pad_idle_cpus is useless.
3. enhance the process of create_power_saving_task/destroy_power_saving_task
4. Add more error checks when evaluating _PUR object.
5. one typo fix

Signed-off-by: Chen Gong <gong.chen@linux.intel.com>
Acked-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/acpi_pad.c