From: Wolfram Sang Date: Sun, 4 Apr 2010 14:04:16 +0000 (+0200) Subject: Blackfin: acvilon: fix timeout usage for I2C X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=efc5863eb52a04134869f5ceb5f81a6fe9b47469;p=openwrt%2Fstaging%2Fblogic.git Blackfin: acvilon: fix timeout usage for I2C The timeout value is in jiffies, so it should be using HZ, not a plain number. As '10000' is ambiguous, 1HZ is used as conservative default. Signed-off-by: Wolfram Sang Cc: Valentin Yakovenkov Signed-off-by: Mike Frysinger --- diff --git a/arch/blackfin/mach-bf561/boards/acvilon.c b/arch/blackfin/mach-bf561/boards/acvilon.c index 5163e2c383c5..bfcfa86db2b5 100644 --- a/arch/blackfin/mach-bf561/boards/acvilon.c +++ b/arch/blackfin/mach-bf561/boards/acvilon.c @@ -44,6 +44,7 @@ #include #include #include +#include #include #include #include @@ -112,7 +113,7 @@ static struct resource bfin_i2c_pca_resources[] = { struct i2c_pca9564_pf_platform_data pca9564_platform_data = { .gpio = -1, .i2c_clock_speed = 330000, - .timeout = 10000 + .timeout = HZ, }; /* PCA9564 I2C Bus driver */