]> git.dujemihanovic.xyz Git - u-boot.git/commit
misc: imx8: scu: use platdata instead of priv data
authorPeng Fan <peng.fan@nxp.com>
Sat, 15 Dec 2018 12:19:52 +0000 (12:19 +0000)
committerStefano Babic <sbabic@denx.de>
Wed, 9 Jan 2019 16:04:03 +0000 (17:04 +0100)
commit026381fc5a06cdc3e41a6bae83486be6cbaae0a9
treef418d8d99ac88a13716cdcfdc43f7557c8e92538
parentecab65e4cdec0ee408ca1ac9d0b06d2793fdae91
misc: imx8: scu: use platdata instead of priv data

priv data has not been allocated when doing bind, so it is
wrong to use dev_get_priv in bind call back.

Let's switch to use platdata in the driver to fix the issue.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/misc/imx8/scu.c