mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-06 13:16:22 +00:00
ACPI / PMIC: Convert to use builtin_platform_driver() macro
All of PMIC OpRegion drivers can't be modules, thus, convert them to use builtin_platform_driver() macro and remove redundant MODULE_*() macros. No functional change intended. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
e8894f5578
commit
0d154fddd6
@ -412,9 +412,4 @@ static struct platform_driver intel_bxtwc_pmic_opregion_driver = {
|
|||||||
},
|
},
|
||||||
.id_table = bxt_wc_opregion_id_table,
|
.id_table = bxt_wc_opregion_id_table,
|
||||||
};
|
};
|
||||||
|
builtin_platform_driver(intel_bxtwc_pmic_opregion_driver);
|
||||||
static int __init intel_bxtwc_pmic_opregion_driver_init(void)
|
|
||||||
{
|
|
||||||
return platform_driver_register(&intel_bxtwc_pmic_opregion_driver);
|
|
||||||
}
|
|
||||||
device_initcall(intel_bxtwc_pmic_opregion_driver_init);
|
|
||||||
|
@ -131,7 +131,4 @@ static struct platform_driver chtdc_ti_pmic_opregion_driver = {
|
|||||||
},
|
},
|
||||||
.id_table = chtdc_ti_pmic_opregion_id_table,
|
.id_table = chtdc_ti_pmic_opregion_id_table,
|
||||||
};
|
};
|
||||||
module_platform_driver(chtdc_ti_pmic_opregion_driver);
|
builtin_platform_driver(chtdc_ti_pmic_opregion_driver);
|
||||||
|
|
||||||
MODULE_DESCRIPTION("Dollar Cove TI PMIC opregion driver");
|
|
||||||
MODULE_LICENSE("GPL v2");
|
|
||||||
|
@ -264,7 +264,6 @@ static const struct platform_device_id cht_wc_opregion_id_table[] = {
|
|||||||
{ .name = "cht_wcove_region" },
|
{ .name = "cht_wcove_region" },
|
||||||
{},
|
{},
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(platform, cht_wc_opregion_id_table);
|
|
||||||
|
|
||||||
static struct platform_driver intel_cht_wc_pmic_opregion_driver = {
|
static struct platform_driver intel_cht_wc_pmic_opregion_driver = {
|
||||||
.probe = intel_cht_wc_pmic_opregion_probe,
|
.probe = intel_cht_wc_pmic_opregion_probe,
|
||||||
@ -273,8 +272,4 @@ static struct platform_driver intel_cht_wc_pmic_opregion_driver = {
|
|||||||
},
|
},
|
||||||
.id_table = cht_wc_opregion_id_table,
|
.id_table = cht_wc_opregion_id_table,
|
||||||
};
|
};
|
||||||
module_platform_driver(intel_cht_wc_pmic_opregion_driver);
|
builtin_platform_driver(intel_cht_wc_pmic_opregion_driver);
|
||||||
|
|
||||||
MODULE_DESCRIPTION("Intel CHT Whiskey Cove PMIC operation region driver");
|
|
||||||
MODULE_AUTHOR("Hans de Goede <hdegoede@redhat.com>");
|
|
||||||
MODULE_LICENSE("GPL");
|
|
||||||
|
@ -201,9 +201,4 @@ static struct platform_driver intel_crc_pmic_opregion_driver = {
|
|||||||
.name = "crystal_cove_pmic",
|
.name = "crystal_cove_pmic",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
builtin_platform_driver(intel_crc_pmic_opregion_driver);
|
||||||
static int __init intel_crc_pmic_opregion_driver_init(void)
|
|
||||||
{
|
|
||||||
return platform_driver_register(&intel_crc_pmic_opregion_driver);
|
|
||||||
}
|
|
||||||
device_initcall(intel_crc_pmic_opregion_driver_init);
|
|
||||||
|
@ -278,9 +278,4 @@ static struct platform_driver intel_xpower_pmic_opregion_driver = {
|
|||||||
.name = "axp288_pmic_acpi",
|
.name = "axp288_pmic_acpi",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
builtin_platform_driver(intel_xpower_pmic_opregion_driver);
|
||||||
static int __init intel_xpower_pmic_opregion_driver_init(void)
|
|
||||||
{
|
|
||||||
return platform_driver_register(&intel_xpower_pmic_opregion_driver);
|
|
||||||
}
|
|
||||||
device_initcall(intel_xpower_pmic_opregion_driver_init);
|
|
||||||
|
Loading…
Reference in New Issue
Block a user