Skip to content
Open
Changes from 1 commit
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
4 changes: 2 additions & 2 deletions apml_alertl.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/i3c/device.h>
#include <linux/i3c/master.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_gpio.h>
Expand Down Expand Up @@ -246,15 +247,14 @@ static int apml_alertl_probe(struct platform_device *pdev)
return 0;
}

static int alert_remove(struct platform_device *pdev)
static void alert_remove(struct platform_device *pdev)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change should be on basis of Linux kernel version

{
#ifdef CONFIG_DEBUG_FS
if (amd_apml) {
debugfs_remove_recursive(amd_apml);
amd_apml = NULL;
}
#endif
return 0;
}

static const struct of_device_id apml_alertl_dt_ids[] = {
Expand Down