From: Alexander Shiyan <eagle.alexander923@gmail.com>
To: barebox@lists.infradead.org
Cc: Alexander Shiyan <eagle.alexander923@gmail.com>
Subject: [PATCH 2/2] i2c: rockchip: Get I2C bus number from devicetree alias
Date: Fri, 14 Jul 2023 08:15:10 +0300 [thread overview]
Message-ID: <20230714051510.2304-4-eagle.alexander923@gmail.com> (raw)
In-Reply-To: <20230714051510.2304-1-eagle.alexander923@gmail.com>
Signed-off-by: Alexander Shiyan <eagle.alexander923@gmail.com>
---
drivers/i2c/busses/i2c-rockchip.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/i2c/busses/i2c-rockchip.c b/drivers/i2c/busses/i2c-rockchip.c
index 23bf4a55d7..e8061fe540 100644
--- a/drivers/i2c/busses/i2c-rockchip.c
+++ b/drivers/i2c/busses/i2c-rockchip.c
@@ -432,7 +432,7 @@ static int rk_i2c_probe(struct device *dev)
return dev_err_probe(dev, PTR_ERR(i2c->clk), "Can't get bus clk\n");
i2c->adapter.master_xfer = rockchip_i2c_xfer;
- i2c->adapter.nr = dev->id;
+ i2c->adapter.nr = -1;
i2c->adapter.dev.parent = dev;
i2c->adapter.dev.of_node = np;
--
2.38.2
prev parent reply other threads:[~2023-07-14 5:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-14 5:15 [PATCH] .gitignore: Add generated scripts/rkimage to .gitignore Alexander Shiyan
2023-07-14 5:15 ` [PATCH 1/2] i2c: Added feature to get bus number from alias Alexander Shiyan
2023-07-26 11:55 ` Sascha Hauer
2023-07-14 5:15 ` [PATCH] mfd: rk808: Add missing RK809 chip ID to poweroff handler Alexander Shiyan
2023-07-14 5:15 ` Alexander Shiyan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230714051510.2304-4-eagle.alexander923@gmail.com \
--to=eagle.alexander923@gmail.com \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox