soc: fsl: enable acpi support
PATCH 1/1 soc: fsl: enable acpi support
This patch enables ACPI support in Rcpm driver.
Signed-off-by Peng Ma <[email protected]>
--- drivers/soc/fsl/rcpm.c | 8 ++++++++ 1 file changed, 8 insertions(+)
drivers/soc/fsl/rcpm.c +8 -0
@@ -13,6 +13,7 @@#include <linux/slab.h> #include <linux/suspend.h> #include <linux/kernel.h> +#include <linux/acpi.h> #define RCPM_WAKEUP_CELL_MAX_SIZE 7
@@ -139,10 +140,17 @@ static const struct of_device_id rcpm_of_match[] = { };MODULE_DEVICE_TABLE (of, rcpm_of_match); +static const struct acpi_device_id rcpm_imx_acpi_ids[] = { + {"NXP0012" ,}, + { } +}; +MODULE_DEVICE_TABLE (acpi, rcpm_imx_acpi_ids); +static struct platform_driver rcpm_driver = { .driver = { .name ="rcpm" , .of_match_table = rcpm_of_match, + .acpi_match_table =ACPI_PTR (rcpm_imx_acpi_ids), .pm = &rcpm_pm_ops, }, .probe = rcpm_probe,
Signature · 1 line
2.9.5