Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement ayaneo_platform_remove and ayaneo_platform_shutdown #19

Merged
merged 1 commit into from
Sep 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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