i2o: fix notifiers when max_drivers is configured
authorAkinobu Mita <akinobu.mita@gmail.com>
Wed, 23 May 2007 20:58:06 +0000 (13:58 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 24 May 2007 03:14:14 +0000 (20:14 -0700)
commitbe324797d9b2a10f767e89dfbd880c735249bef9
treeb5ef4a6cf8d09d3b2209399951dc93d59bb1b477
parente578e9a1cc8a5983d87126d5877e305d3189f1b9
i2o: fix notifiers when max_drivers is configured

Maximum number of I2O drivers which could be registered is configurable by
max_drivers module parameter.

But the module parameter is ignored and default value (I2O_MAX_DRIVERS = 8)
is used in the loops to notify all registered drivers.

Cc: Markus Lidel <Markus.Lidel@shadowconnect.com>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/message/i2o/driver.c