Skip to content

Commit bbce9fb

Browse files
Vamshi Gajjelagregkh
authored andcommitted
spmi: hisi-spmi-controller: Do not override device identifier
commit eda4923 upstream. 'nr' member of struct spmi_controller, which serves as an identifier for the controller/bus. This value is a dynamic ID assigned in spmi_controller_alloc, and overriding it from the driver results in an ida_free error "ida_free called for id=xx which is not allocated". Signed-off-by: Vamshi Gajjela <[email protected]> Fixes: 70f59c9 ("staging: spmi: add Hikey 970 SPMI controller driver") Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 95bac1c commit bbce9fb

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/spmi/hisi-spmi-controller.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,6 @@ static int spmi_controller_probe(struct platform_device *pdev)
303303

304304
spin_lock_init(&spmi_controller->lock);
305305

306-
ctrl->nr = spmi_controller->channel;
307306
ctrl->dev.parent = pdev->dev.parent;
308307
ctrl->dev.of_node = of_node_get(pdev->dev.of_node);
309308

0 commit comments

Comments
 (0)