Re: section mismatch with a platform driver

From: Randy Dunlap
Date: Mon Oct 13 2008 - 15:01:18 EST


Neshama Parhoti wrote:
> On Mon, Oct 13, 2008 at 6:31 PM, Randy Dunlap <randy.dunlap@xxxxxxxxxx> wrote:
>>> Does that mean that all drivers with __init in their probe functions are bogus ?
>> It depends. If your platform doesn't support hotplug, then it's possible
>> that the probe function is only called during system init, so it would be OK.
>
> Hmm any idea then why did it give me a section mismatch warning ?

Just because the probe function is marked __init.
--
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/