aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/iicbus/twsi
diff options
context:
space:
mode:
authorMichal Meloun <mmel@FreeBSD.org>2016-07-10 18:28:15 +0000
committerMichal Meloun <mmel@FreeBSD.org>2016-07-10 18:28:15 +0000
commitdac935533b354a9be9167013e999d128bfc8392b (patch)
tree8b7ffcc52987f5e05c0f5384d9d04ebc168605bd /sys/dev/iicbus/twsi
parent5fa69ff0151ee425246714f9a7805caf0690af3a (diff)
downloadsrc-dac935533b354a9be9167013e999d128bfc8392b.tar.gz
src-dac935533b354a9be9167013e999d128bfc8392b.zip
EXTRES: Add OF node as argument to all <foo>_get_by_ofw_<bar>() functions.
In some cases, the driver must handle given properties located in specific OF subnode. Instead of creating duplicate set of function, add 'node' as argument to existing functions, defaulting it to device OF node. MFC after: 3 weeks
Notes
Notes: svn path=/head/; revision=302528
Diffstat (limited to 'sys/dev/iicbus/twsi')
-rw-r--r--sys/dev/iicbus/twsi/a10_twsi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/iicbus/twsi/a10_twsi.c b/sys/dev/iicbus/twsi/a10_twsi.c
index c32e6fa6debf..b468f088531d 100644
--- a/sys/dev/iicbus/twsi/a10_twsi.c
+++ b/sys/dev/iicbus/twsi/a10_twsi.c
@@ -95,7 +95,7 @@ a10_twsi_attach(device_t dev)
sc = device_get_softc(dev);
/* De-assert reset */
- if (hwreset_get_by_ofw_idx(dev, 0, &rst) == 0) {
+ if (hwreset_get_by_ofw_idx(dev, 0, 0, &rst) == 0) {
error = hwreset_deassert(rst);
if (error != 0) {
device_printf(dev, "could not de-assert reset\n");
@@ -104,7 +104,7 @@ a10_twsi_attach(device_t dev)
}
/* Activate clock */
- error = clk_get_by_ofw_index(dev, 0, &clk);
+ error = clk_get_by_ofw_index(dev, 0, 0, &clk);
if (error != 0) {
device_printf(dev, "could not find clock\n");
return (error);