From: Akinobu Mita Date: Wed, 23 May 2007 20:58:07 +0000 (-0700) Subject: i2o: eliminate a peculiar constraint on i2o_max_drivers X-Git-Tag: firefly_0821_release~28913 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=82cd0e8410ae74d3fd39d168049381eafc489e5b;p=firefly-linux-kernel-4.4.55.git i2o: eliminate a peculiar constraint on i2o_max_drivers There is no reason i2o_max_drivers must be a power of two. This patch eliminates such a constraint. Cc: Markus Lidel Signed-off-by: Akinobu Mita Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/message/i2o/driver.c b/drivers/message/i2o/driver.c index a3ee1796af0c..e0d474b17433 100644 --- a/drivers/message/i2o/driver.c +++ b/drivers/message/i2o/driver.c @@ -20,7 +20,6 @@ #include #include #include -#include #include "core.h" #define OSM_NAME "i2o" @@ -340,10 +339,9 @@ int __init i2o_driver_init(void) spin_lock_init(&i2o_drivers_lock); - if ((i2o_max_drivers < 2) || (i2o_max_drivers > 64) || - !is_power_of_2(i2o_max_drivers)) { - osm_warn("max_drivers set to %d, but must be >=2 and <= 64 and " - "a power of 2\n", i2o_max_drivers); + if ((i2o_max_drivers < 2) || (i2o_max_drivers > 64)) { + osm_warn("max_drivers set to %d, but must be >=2 and <= 64\n", + i2o_max_drivers); i2o_max_drivers = I2O_MAX_DRIVERS; } osm_info("max drivers = %d\n", i2o_max_drivers);