summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntonio Martorana <amartora@codeaurora.org>2021-08-17 02:24:39 +0200
committerBjorn Andersson <bjorn.andersson@linaro.org>2021-09-13 17:39:59 +0200
commit9c5a4ec69bbf5951f84ada9e0db9c6c50de61808 (patch)
tree255a939ec3784ba8f981d5b51206ad579f020887
parentLinux 5.15-rc1 (diff)
downloadlinux-9c5a4ec69bbf5951f84ada9e0db9c6c50de61808.tar.xz
linux-9c5a4ec69bbf5951f84ada9e0db9c6c50de61808.zip
soc: qcom: socinfo: Fixed argument passed to platform_set_data()
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: efb448d0a3fc ("soc: qcom: Add socinfo driver") Signed-off-by: Antonio Martorana <amartora@codeaurora.org> Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org> Link: https://lore.kernel.org/r/1629159879-95777-1-git-send-email-amartora@codeaurora.org Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
-rw-r--r--drivers/soc/qcom/socinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/qcom/socinfo.c b/drivers/soc/qcom/socinfo.c
index 9faf48302f4b..52e581167115 100644
--- a/drivers/soc/qcom/socinfo.c
+++ b/drivers/soc/qcom/socinfo.c
@@ -628,7 +628,7 @@ static int qcom_socinfo_probe(struct platform_device *pdev)
/* Feed the soc specific unique data into entropy pool */
add_device_randomness(info, item_size);
- platform_set_drvdata(pdev, qs->soc_dev);
+ platform_set_drvdata(pdev, qs);
return 0;
}