forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use module_platform_driver(), add module device table, author, description and license to support module build, and CONFIG_RESET_IMX7 is changed to default 'y' ONLY for i.MX7D, other platforms need to select it in defconfig. Signed-off-by: Anson Huang <[email protected]> Signed-off-by: Philipp Zabel <[email protected]>
- Loading branch information
1 parent
9123e3a
commit a442abb
Showing
2 changed files
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
*/ | ||
|
||
#include <linux/mfd/syscon.h> | ||
#include <linux/mod_devicetable.h> | ||
#include <linux/module.h> | ||
#include <linux/of_device.h> | ||
#include <linux/platform_device.h> | ||
#include <linux/reset-controller.h> | ||
|
@@ -386,6 +386,7 @@ static const struct of_device_id imx7_reset_dt_ids[] = { | |
{ .compatible = "fsl,imx8mp-src", .data = &variant_imx8mp }, | ||
{ /* sentinel */ }, | ||
}; | ||
MODULE_DEVICE_TABLE(of, imx7_reset_dt_ids); | ||
|
||
static struct platform_driver imx7_reset_driver = { | ||
.probe = imx7_reset_probe, | ||
|
@@ -394,4 +395,8 @@ static struct platform_driver imx7_reset_driver = { | |
.of_match_table = imx7_reset_dt_ids, | ||
}, | ||
}; | ||
builtin_platform_driver(imx7_reset_driver); | ||
module_platform_driver(imx7_reset_driver); | ||
|
||
MODULE_AUTHOR("Andrey Smirnov <[email protected]>"); | ||
MODULE_DESCRIPTION("NXP i.MX7 reset driver"); | ||
MODULE_LICENSE("GPL v2"); |