diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2015-01-27 22:47:59 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-01-28 08:18:44 +0100 |
commit | f765925bb9fc5b0989bb9abf95d39aa03a847b37 (patch) | |
tree | a72e964f0827b5e67836d0e9b762ddafa89830fa /arch/arm/mach-mxs | |
parent | f3ff746d20931b681f5f1fcac44aea317b06dac0 (diff) | |
download | barebox-f765925bb9fc5b0989bb9abf95d39aa03a847b37.tar.gz barebox-f765925bb9fc5b0989bb9abf95d39aa03a847b37.tar.xz |
ARM: MXS: ocotp: Add devicetree support
Add the device tree compatible strings.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mxs')
-rw-r--r-- | arch/arm/mach-mxs/ocotp.c | 9 |
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) |