forked from luck/tmp_suning_uos_patched
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lrg/voltage-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lrg/voltage-2.6: leds: Fix bounds checking of wm8350->pmic.led regulator: move bq24022 init back to module_init instead of subsys_initcall
This commit is contained in:
commit
4b8d8ab566
@ -152,11 +152,7 @@ static void __exit bq24022_exit(void)
|
|||||||
platform_driver_unregister(&bq24022_driver);
|
platform_driver_unregister(&bq24022_driver);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
module_init(bq24022_init);
|
||||||
* make sure this is probed before gpio_vbus and pda_power,
|
|
||||||
* but after asic3 or other GPIO expander drivers.
|
|
||||||
*/
|
|
||||||
subsys_initcall(bq24022_init);
|
|
||||||
module_exit(bq24022_exit);
|
module_exit(bq24022_exit);
|
||||||
|
|
||||||
MODULE_AUTHOR("Philipp Zabel");
|
MODULE_AUTHOR("Philipp Zabel");
|
||||||
|
@ -1435,7 +1435,7 @@ int wm8350_register_led(struct wm8350 *wm8350, int lednum, int dcdc, int isink,
|
|||||||
struct platform_device *pdev;
|
struct platform_device *pdev;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (lednum > ARRAY_SIZE(wm8350->pmic.led) || lednum < 0) {
|
if (lednum >= ARRAY_SIZE(wm8350->pmic.led) || lednum < 0) {
|
||||||
dev_err(wm8350->dev, "Invalid LED index %d\n", lednum);
|
dev_err(wm8350->dev, "Invalid LED index %d\n", lednum);
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user