properly set the init_arg to os_dev_init() function.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/425a2136 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/425a2136 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/425a2136 Branch: refs/heads/sterly_refactor Commit: 425a213609a1d5a424e16233a9a5f79880680563 Parents: 8aafe83 Author: Sterling Hughes <[email protected]> Authored: Tue Aug 9 10:54:54 2016 -0700 Committer: Sterling Hughes <[email protected]> Committed: Tue Aug 9 10:54:54 2016 -0700 ---------------------------------------------------------------------- libs/os/src/os_dev.c | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/425a2136/libs/os/src/os_dev.c ---------------------------------------------------------------------- diff --git a/libs/os/src/os_dev.c b/libs/os/src/os_dev.c index 75d61b0..acfdf45 100644 --- a/libs/os/src/os_dev.c +++ b/libs/os/src/os_dev.c @@ -36,6 +36,7 @@ os_dev_init(struct os_dev *dev, char *name, uint8_t stage, /* assume these are set after the fact. */ dev->od_init_flags = 0; dev->od_init = od_init; + dev->od_init_arg = arg; memset(&dev->od_handlers, 0, sizeof(dev->od_handlers)); return (0);
