scc_pata: fix module unloading
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 8 Jan 2010 08:11:01 +0000 (00:11 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Jan 2010 08:11:01 +0000 (00:11 -0800)
commit4cd7d9247ffa2a27508c69563b66713519c196f5
treed5e53ea77ea8007108b2fd6f4c1771b6ce224acc
parent1c8a375185935f8106a45221bd187b7b272f97c2
scc_pata: fix module unloading

scc_pata host driver predated module unloading support for IDE host
drivers so even though it supports PCI hot-unplug and implements
PCI device ->remove method it doesn't allow module removal.  Fix it.

Add missing __init/__exit tags to module_init/module_exit functions
while at it (from Peter Huewe).

Noticed-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ide/scc_pata.c