]> err.no Git - linux-2.6/commit
[PATCH] sk98lin: routine called from probe marked __init
authorStephen Hemminger <shemminger@osdl.org>
Sat, 7 Jan 2006 00:57:39 +0000 (16:57 -0800)
committerJeff Garzik <jgarzik@pobox.com>
Mon, 9 Jan 2006 15:32:40 +0000 (10:32 -0500)
commit17fa6e2f115ad734ef802b663071159a1a64d06f
tree9cd0ca9b3bb4c14e2441637b84c1dc8e70f5bdbb
parent5367f2d67c7d0bf1faae90e6e7b4e2ac3c9b5e0f
[PATCH] sk98lin: routine called from probe marked __init

Sk98lin driver has a routine marked __init that is called from
the probe code. If using pci hotplug, this could be called after
the initialization so it needs to be marked __devinit.
So if you hot added a sk98lin board, the kernel would crash.
I don't have hot plug hardware to actually try this feat.

Also, there are two routines, only called from SkGeBoardInit that can
be marked __devinit.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/sk98lin/skge.c