diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-10-05 10:38:58 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-10-05 12:34:19 +0200 |
commit | aa64d578985c983d6d85c8784866cdfe17bca099 (patch) | |
tree | f7256a9145ef42bf3b3703e98d1204045e0a24d9 /arch/arm/mach-imx/clk-imx21.c | |
parent | 258e096e130c80399221bfb98a7f0847fdcaa288 (diff) | |
download | barebox-aa64d578985c983d6d85c8784866cdfe17bca099.tar.gz barebox-aa64d578985c983d6d85c8784866cdfe17bca099.tar.xz |
ARM i.MX: Add devicetree support to the ccm drivers
This adds the compatible strings to the CCM drivers.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/clk-imx21.c')
-rw-r--r-- | arch/arm/mach-imx/clk-imx21.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/clk-imx21.c b/arch/arm/mach-imx/clk-imx21.c index 69aaa9e6ad..a7c5732260 100644 --- a/arch/arm/mach-imx/clk-imx21.c +++ b/arch/arm/mach-imx/clk-imx21.c @@ -107,9 +107,18 @@ static int imx21_ccm_probe(struct device_d *dev) return 0; } +static __maybe_unused struct of_device_id imx21_ccm_dt_ids[] = { + { + .compatible = "fsl,imx21-ccm", + }, { + /* sentinel */ + } +}; + static struct driver_d imx21_ccm_driver = { .probe = imx21_ccm_probe, .name = "imx21-ccm", + .of_compatible = DRV_OF_COMPAT(imx21_ccm_dt_ids), }; static int imx21_ccm_init(void) |