Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7f4b48b3 authored by Tony Prisk's avatar Tony Prisk
Browse files

rtc: vt8500: Add devicetree support for vt8500-rtc

parent cb935e71
Loading
Loading
Loading
Loading
+8 −1
Original line number Original line Diff line number Diff line
@@ -23,6 +23,7 @@
#include <linux/bcd.h>
#include <linux/bcd.h>
#include <linux/platform_device.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/slab.h>
#include <linux/of.h>


/*
/*
 * Register definitions
 * Register definitions
@@ -302,12 +303,18 @@ static int __devexit vt8500_rtc_remove(struct platform_device *pdev)
	return 0;
	return 0;
}
}


static const struct of_device_id wmt_dt_ids[] = {
	{ .compatible = "via,vt8500-rtc", },
	{}
};

static struct platform_driver vt8500_rtc_driver = {
static struct platform_driver vt8500_rtc_driver = {
	.probe		= vt8500_rtc_probe,
	.probe		= vt8500_rtc_probe,
	.remove		= __devexit_p(vt8500_rtc_remove),
	.remove		= __devexit_p(vt8500_rtc_remove),
	.driver		= {
	.driver		= {
		.name	= "vt8500-rtc",
		.name	= "vt8500-rtc",
		.owner	= THIS_MODULE,
		.owner	= THIS_MODULE,
		.of_match_table = of_match_ptr(wmt_dt_ids),
	},
	},
};
};


@@ -315,5 +322,5 @@ module_platform_driver(vt8500_rtc_driver);


MODULE_AUTHOR("Alexey Charkov <alchark@gmail.com>");
MODULE_AUTHOR("Alexey Charkov <alchark@gmail.com>");
MODULE_DESCRIPTION("VIA VT8500 SoC Realtime Clock Driver (RTC)");
MODULE_DESCRIPTION("VIA VT8500 SoC Realtime Clock Driver (RTC)");
MODULE_LICENSE("GPL");
MODULE_LICENSE("GPL v2");
MODULE_ALIAS("platform:vt8500-rtc");
MODULE_ALIAS("platform:vt8500-rtc");