OSDN Git Service

i2c: aspeed: Remove hard-coded bus timeout value setting
authorJae Hyun Yoo <jae.hyun.yoo@linux.intel.com>
Wed, 16 Jan 2019 19:39:43 +0000 (11:39 -0800)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 22 Jan 2019 23:18:11 +0000 (00:18 +0100)
This commit removes hard-coded bus timeout value setting so that
it can be set by i2c-core-base.

Signed-off-by: Jae Hyun Yoo <jae.hyun.yoo@linux.intel.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-aspeed.c

index 8dc9161..833b6b6 100644 (file)
@@ -930,7 +930,6 @@ static int aspeed_i2c_probe_bus(struct platform_device *pdev)
        init_completion(&bus->cmd_complete);
        bus->adap.owner = THIS_MODULE;
        bus->adap.retries = 0;
-       bus->adap.timeout = 5 * HZ;
        bus->adap.algo = &aspeed_i2c_algo;
        bus->adap.dev.parent = &pdev->dev;
        bus->adap.dev.of_node = pdev->dev.of_node;