X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fmtd%2Fmaps%2Fvmax301.c;h=c8c74110ed1b561b7fde5b32fefb4fbb131417cb;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=9cf2629b8de90de81176bde47947a9cf46dd129f;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/drivers/mtd/maps/vmax301.c b/drivers/mtd/maps/vmax301.c index 9cf2629b8..c8c74110e 100644 --- a/drivers/mtd/maps/vmax301.c +++ b/drivers/mtd/maps/vmax301.c @@ -38,7 +38,7 @@ the extra indirection from having one of the map->map_priv fields pointing to yet another private struct. */ -static spinlock_t vmax301_spin = SPIN_LOCK_UNLOCKED; +static DEFINE_SPINLOCK(vmax301_spin); static void __vmax301_page(struct map_info *map, unsigned long page) {