X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fmtd%2Fchips%2Fchipreg.c;h=d7d739a108ae5367788f6825b93925f4034e07f4;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=3bc9199d2b788ab56b81d46b5f7a2487cc9e73a0;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/drivers/mtd/chips/chipreg.c b/drivers/mtd/chips/chipreg.c index 3bc9199d2..d7d739a10 100644 --- a/drivers/mtd/chips/chipreg.c +++ b/drivers/mtd/chips/chipreg.c @@ -1,5 +1,5 @@ /* - * $Id: chipreg.c,v 1.15 2003/05/21 15:15:05 dwmw2 Exp $ + * $Id: chipreg.c,v 1.17 2004/11/16 18:29:00 dwmw2 Exp $ * * Registration for chip drivers * @@ -15,7 +15,7 @@ #include #include -spinlock_t chip_drvs_lock = SPIN_LOCK_UNLOCKED; +static DEFINE_SPINLOCK(chip_drvs_lock); static LIST_HEAD(chip_drvs_list); void register_mtd_chip_driver(struct mtd_chip_driver *drv)