Re: [PATCH] ab8500: btemp: demote initcall sequence

From: Anton Vorontsov
Date: Sat Feb 02 2013 - 22:25:26 EST


On Wed, Jan 23, 2013 at 09:56:45AM +0530, Rajanikanth H.V wrote:
> From: "Rajanikanth H.V" <rajanikanth.hv@xxxxxxxxxxxxxx>
>
> Power supply subsystem creates thermal zone device for
> the property 'POWER_SUPPLY_PROP_TEMP' which requires
> thermal subsystem to be ready before 'ab8500 battery temperature monitor'
> driver is initialized.
> ab8500 btemp driver is initialized with subsys_initcall whereas thermal
> subsystem is initialized with fs_initcall which causes
> thermal_zone_device_register(...) to crash since the required structure
> 'thermal_class' is not initialized yet.
>
> crash log:
[...]
> Signed-off-by: Rajanikanth H.V <rajanikanth.hv@xxxxxxxxxxxxxx>
> ---

Applied and added Cc: stable.

Thanks!
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/