mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
rtc: gemini: Add device tree probing
This adds bindings and simple probing for the Cortina Systems Gemini SoC RTC. Cc: Janos Laube <[email protected]> Cc: Paulius Zaleckas <[email protected]> Cc: Hans Ulli Kroll <[email protected]> Cc: Florian Fainelli <[email protected]> Cc: [email protected] Signed-off-by: Linus Walleij <[email protected]> Acked-by: Rob Herring <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]>
This commit is contained in:
parent
1d70ba3bfb
commit
bc7d8ebf37
2 changed files with 21 additions and 0 deletions
|
|
@ -159,9 +159,16 @@ static int gemini_rtc_remove(struct platform_device *pdev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static const struct of_device_id gemini_rtc_dt_match[] = {
|
||||
{ .compatible = "cortina,gemini-rtc" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, gemini_rtc_dt_match);
|
||||
|
||||
static struct platform_driver gemini_rtc_driver = {
|
||||
.driver = {
|
||||
.name = DRV_NAME,
|
||||
.of_match_table = gemini_rtc_dt_match,
|
||||
},
|
||||
.probe = gemini_rtc_probe,
|
||||
.remove = gemini_rtc_remove,
|
||||
|
|
|
|||
Loading…
Reference in a new issue