diff options
-rw-r--r-- | drivers/i2c/busses/i2c-keywest.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/i2c/busses/i2c-keywest.c b/drivers/i2c/busses/i2c-keywest.c index e60ed6f49a62..37b49c2daf5f 100644 --- a/drivers/i2c/busses/i2c-keywest.c +++ b/drivers/i2c/busses/i2c-keywest.c | |||
@@ -87,12 +87,9 @@ static const char *__kw_state_names[] = { | |||
87 | }; | 87 | }; |
88 | #endif /* DEBUG */ | 88 | #endif /* DEBUG */ |
89 | 89 | ||
90 | static int probe; | ||
91 | |||
92 | MODULE_AUTHOR("Benjamin Herrenschmidt <benh@kernel.crashing.org>"); | 90 | MODULE_AUTHOR("Benjamin Herrenschmidt <benh@kernel.crashing.org>"); |
93 | MODULE_DESCRIPTION("I2C driver for Apple's Keywest"); | 91 | MODULE_DESCRIPTION("I2C driver for Apple's Keywest"); |
94 | MODULE_LICENSE("GPL"); | 92 | MODULE_LICENSE("GPL"); |
95 | module_param(probe, bool, 0); | ||
96 | 93 | ||
97 | #ifdef POLLED_MODE | 94 | #ifdef POLLED_MODE |
98 | /* Don't schedule, the g5 fan controller is too | 95 | /* Don't schedule, the g5 fan controller is too |
@@ -632,15 +629,6 @@ create_iface(struct device_node *np, struct device *dev) | |||
632 | chan->adapter.name); | 629 | chan->adapter.name); |
633 | i2c_set_adapdata(&chan->adapter, NULL); | 630 | i2c_set_adapdata(&chan->adapter, NULL); |
634 | } | 631 | } |
635 | if (probe) { | ||
636 | printk("Probe: "); | ||
637 | for (addr = 0x00; addr <= 0x7f; addr++) { | ||
638 | if (i2c_smbus_xfer(&chan->adapter,addr, | ||
639 | 0,0,0,I2C_SMBUS_QUICK,NULL) >= 0) | ||
640 | printk("%02x ", addr); | ||
641 | } | ||
642 | printk("\n"); | ||
643 | } | ||
644 | } | 632 | } |
645 | 633 | ||
646 | printk(KERN_INFO "Found KeyWest i2c on \"%s\", %d channel%s, stepping: %d bits\n", | 634 | printk(KERN_INFO "Found KeyWest i2c on \"%s\", %d channel%s, stepping: %d bits\n", |