Commit c2151a5
spi: hisi-kunpeng: Fixed the wrong debugfs node name in hisi_spi debugfs initialization
commit 9c04e8a224613f439d43cda9afe487e6a0702040 openEuler
in hisi_spi_debugfs_init, spi controller pointer is calculated by
container_of macro, and the member is hs->dev. But the host pointer cannot
be calculated offset directly by this, because hs->dev points to the
device in platform device(pdev->dev), and the host->dev points to the
pdev->dev.parent.
In this patch, this issues is fixed by getting the controller data
from pdev->dev.driver_data directly, driver_data points to the spi
controller data in the probe stage.
Fixes: 9f58904 ("spi: hisi-kunpeng: switch to use modern name")
Signed-off-by: lujunhua <lujunhua7@h-partners.com>
Signed-off-by: Devyn Liu <liudingyuan@huawei.com>
Signed-off-by: zhaolichang <943677312@qq.com>
Signed-off-by: WangYuli <wangyl5933@chinaunicom.cn>1 parent f76dc25 commit c2151a5
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| |||
0 commit comments