]> git.baikalelectronics.ru Git - uboot.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)
commiteb23276a5f5e3c76f9e95baa993ecf46878d53d6
treef418d8d99ac88a13716cdcfdc43f7557c8e92538
parent80e796463ad590d708ada3eeeb1a9f24881c4fd5
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