mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
pata_arasan: add Device Tree probing capability
SPEAr platforms now support DT and so must convert all drivers to support DT. This patch adds DT probing support for Arasan Compact Flash controller and updates its documentation too. Signed-off-by: Viresh Kumar <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
This commit is contained in:
parent
3f09e6c0d3
commit
26fdaa7453
2 changed files with 27 additions and 0 deletions
|
|
@ -31,6 +31,7 @@
|
|||
#include <linux/kernel.h>
|
||||
#include <linux/libata.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/of.h>
|
||||
#include <linux/pata_arasan_cf_data.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/pm.h>
|
||||
|
|
@ -935,6 +936,14 @@ static int arasan_cf_resume(struct device *dev)
|
|||
|
||||
static SIMPLE_DEV_PM_OPS(arasan_cf_pm_ops, arasan_cf_suspend, arasan_cf_resume);
|
||||
|
||||
#ifdef CONFIG_OF
|
||||
static const struct of_device_id arasan_cf_id_table[] = {
|
||||
{ .compatible = "arasan,cf-spear1340" },
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, arasan_cf_id_table);
|
||||
#endif
|
||||
|
||||
static struct platform_driver arasan_cf_driver = {
|
||||
.probe = arasan_cf_probe,
|
||||
.remove = __devexit_p(arasan_cf_remove),
|
||||
|
|
@ -942,6 +951,7 @@ static struct platform_driver arasan_cf_driver = {
|
|||
.name = DRIVER_NAME,
|
||||
.owner = THIS_MODULE,
|
||||
.pm = &arasan_cf_pm_ops,
|
||||
.of_match_table = of_match_ptr(arasan_cf_id_table),
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue