Skip to content

Commit 3ce827b

Browse files
Heikki Krogerusjwrdegoede
authored andcommitted
platform/x86: intel_cht_int33fe: Set driver data
Module removal fails because cht_int33fe_typec_remove() tries to access driver data that does not exist. Fixing by assigning the data at the end of probe. Fixes: 915623a ("platform/x86: intel_cht_int33fe: Switch to DMI modalias based loading") Signed-off-by: Heikki Krogerus <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Hans de Goede <[email protected]>
1 parent 1620c80 commit 3ce827b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/platform/x86/intel/chtwc_int33fe.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,8 @@ static int cht_int33fe_typec_probe(struct platform_device *pdev)
389389
goto out_unregister_fusb302;
390390
}
391391

392+
platform_set_drvdata(pdev, data);
393+
392394
return 0;
393395

394396
out_unregister_fusb302:

0 commit comments

Comments
 (0)