Skip to content

Commit

Permalink
feat: implement ayaneo_platform_remove and ayaneo_platform_shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
SytheZN authored and pastaq committed Sep 15, 2024
1 parent 2e1c1e5 commit 54832bd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ayaneo-platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -1018,13 +1018,27 @@ static int ayaneo_platform_probe(struct platform_device *pdev)
return ret;
}

static void ayaneo_platform_shutdown(struct platform_device *pdev)
{
kthread_stop(ayaneo_led_mc_writer_thread);
ayaneo_led_mc_release_control();
}

static void ayaneo_platform_remove(struct platform_device *pdev)
{
kthread_stop(ayaneo_led_mc_writer_thread);
ayaneo_led_mc_release_control();
}

static struct platform_driver ayaneo_platform_driver = {
.driver = {
.name = "ayaneo-platform",
},
.probe = ayaneo_platform_probe,
.resume = ayaneo_platform_resume,
.suspend = ayaneo_platform_suspend,
.shutdown = ayaneo_platform_shutdown,
.remove_new = ayaneo_platform_remove,
};

static struct platform_device *ayaneo_platform_device;
Expand Down

0 comments on commit 54832bd

Please sign in to comment.