aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-parport-light.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/i2c/busses/i2c-parport-light.c')
-rw-r--r--drivers/i2c/busses/i2c-parport-light.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-parport-light.c b/drivers/i2c/busses/i2c-parport-light.c
index 322c5691e38e..5383f64c5372 100644
--- a/drivers/i2c/busses/i2c-parport-light.c
+++ b/drivers/i2c/busses/i2c-parport-light.c
@@ -27,6 +27,7 @@
27#include <linux/kernel.h> 27#include <linux/kernel.h>
28#include <linux/module.h> 28#include <linux/module.h>
29#include <linux/init.h> 29#include <linux/init.h>
30#include <linux/delay.h>
30#include <linux/platform_device.h> 31#include <linux/platform_device.h>
31#include <linux/ioport.h> 32#include <linux/ioport.h>
32#include <linux/i2c.h> 33#include <linux/i2c.h>
@@ -127,8 +128,11 @@ static int __devinit i2c_parport_probe(struct platform_device *pdev)
127 parport_setsda(NULL, 1); 128 parport_setsda(NULL, 1);
128 parport_setscl(NULL, 1); 129 parport_setscl(NULL, 1);
129 /* Other init if needed (power on...) */ 130 /* Other init if needed (power on...) */
130 if (adapter_parm[type].init.val) 131 if (adapter_parm[type].init.val) {
131 line_set(1, &adapter_parm[type].init); 132 line_set(1, &adapter_parm[type].init);
133 /* Give powered devices some time to settle */
134 msleep(100);
135 }
132 136
133 parport_adapter.dev.parent = &pdev->dev; 137 parport_adapter.dev.parent = &pdev->dev;
134 err = i2c_bit_add_bus(&parport_adapter); 138 err = i2c_bit_add_bus(&parport_adapter);