提交 225e85f5 编写于 作者: A Antonio Martorana 提交者: Zheng Zengkai

soc: qcom: socinfo: Fixed argument passed to platform_set_data()

stable inclusion
from stable-5.10.73
commit 25ac88e601ebc7c44a5aa0a5fa094e59e53eaaae
bugzilla: 182983 https://gitee.com/openeuler/kernel/issues/I4I3M0

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=25ac88e601ebc7c44a5aa0a5fa094e59e53eaaae

--------------------------------

[ Upstream commit 9c5a4ec6 ]

Set qcom_socinfo pointer as data being stored instead of pointer
to soc_device structure. Aligns with future calls to platform_get_data()
which expects qcom_socinfo pointer.

Fixes: efb448d0 ("soc: qcom: Add socinfo driver")
Signed-off-by: NAntonio Martorana <amartora@codeaurora.org>
Reviewed-by: NBjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/1629159879-95777-1-git-send-email-amartora@codeaurora.orgSigned-off-by: NBjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Acked-by: NWeilong Chen <chenweilong@huawei.com>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 1cce20e9
...@@ -521,7 +521,7 @@ static int qcom_socinfo_probe(struct platform_device *pdev) ...@@ -521,7 +521,7 @@ static int qcom_socinfo_probe(struct platform_device *pdev)
/* Feed the soc specific unique data into entropy pool */ /* Feed the soc specific unique data into entropy pool */
add_device_randomness(info, item_size); add_device_randomness(info, item_size);
platform_set_drvdata(pdev, qs->soc_dev); platform_set_drvdata(pdev, qs);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册