diff options
author | Mike Rapoport <mike.rapoport@gmail.com> | 2015-09-29 10:47:49 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-09-29 15:20:35 +0200 |
commit | 1282bade3b8e34cb4a26b8444577d70c7f15e0d8 (patch) | |
tree | dae2e848d7ec54846533d7a0e25d4e329271770c /drivers/staging/sm750fb/ddk750_swi2c.c | |
parent | 96a384a7ed53b38fc2ba35fa5ef828a2c7368a3a (diff) |
staging: sm750fb: remove dead code
Remove the code enclosed in '#if 0'
Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/sm750fb/ddk750_swi2c.c')
-rw-r--r-- | drivers/staging/sm750fb/ddk750_swi2c.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/staging/sm750fb/ddk750_swi2c.c b/drivers/staging/sm750fb/ddk750_swi2c.c index 37cdd5b5f19e..8d644a7cba52 100644 --- a/drivers/staging/sm750fb/ddk750_swi2c.c +++ b/drivers/staging/sm750fb/ddk750_swi2c.c @@ -90,20 +90,17 @@ static void sw_i2c_wait(void) * never finish. * use non-ultimate for loop below is safe * */ -#if 0 + /* Change wait algorithm to use PCI bus clock, it's more reliable than counter loop .. write 0x61 to 0x3ce and read from 0x3cf */ - while (peekIO(0x3ce, 0x61) & 0x10); -#else int i, tmp; for (i = 0; i < 600; i++) { tmp = i; tmp += i; } -#endif } /* |