summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mxs/ocotp.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-02-04 19:09:15 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2015-02-04 19:09:15 +0100
commit7b0f932bcdfadf37e8d25388b29266faa3d3c824 (patch)
treeec1f5f9ccea83367d0e75c360c1532c575d65f44 /arch/arm/mach-mxs/ocotp.c
parentce961e341258dc9f78da3c0d64231cf1afdc4e63 (diff)
parent99dc5005935070e1680e5f08dd1cd9eee1f2f284 (diff)
downloadbarebox-7b0f932bcdfadf37e8d25388b29266faa3d3c824.tar.gz
barebox-7b0f932bcdfadf37e8d25388b29266faa3d3c824.tar.xz
Merge branch 'for-next/mxs'
Diffstat (limited to 'arch/arm/mach-mxs/ocotp.c')
-rw-r--r--arch/arm/mach-mxs/ocotp.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-mxs/ocotp.c b/arch/arm/mach-mxs/ocotp.c
index abdd445b5d..2029b90acb 100644
--- a/arch/arm/mach-mxs/ocotp.c
+++ b/arch/arm/mach-mxs/ocotp.c
@@ -207,9 +207,18 @@ static int mxs_ocotp_probe(struct device_d *dev)
return 0;
}
+static __maybe_unused struct of_device_id mxs_ocotp_compatible[] = {
+ {
+ .compatible = "fsl,ocotp",
+ }, {
+ /* sentinel */
+ }
+};
+
static struct driver_d mxs_ocotp_driver = {
.name = DRIVERNAME,
.probe = mxs_ocotp_probe,
+ .of_compatible = DRV_OF_COMPAT(mxs_ocotp_compatible),
};
static int mxs_ocotp_init(void)