diff options
Diffstat (limited to 'drivers/w1/w1_int.c')
-rw-r--r-- | drivers/w1/w1_int.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/w1/w1_int.c b/drivers/w1/w1_int.c index 357a2e0f637a..258defdb2efd 100644 --- a/drivers/w1/w1_int.c +++ b/drivers/w1/w1_int.c | |||
@@ -100,7 +100,8 @@ int w1_add_master_device(struct w1_bus_master *master) | |||
100 | 100 | ||
101 | /* validate minimum functionality */ | 101 | /* validate minimum functionality */ |
102 | if (!(master->touch_bit && master->reset_bus) && | 102 | if (!(master->touch_bit && master->reset_bus) && |
103 | !(master->write_bit && master->read_bit)) { | 103 | !(master->write_bit && master->read_bit) && |
104 | !(master->write_byte && master->read_byte && master->reset_bus)) { | ||
104 | printk(KERN_ERR "w1_add_master_device: invalid function set\n"); | 105 | printk(KERN_ERR "w1_add_master_device: invalid function set\n"); |
105 | return(-EINVAL); | 106 | return(-EINVAL); |
106 | } | 107 | } |