pwm: pwm-mxs: encode soc name in compatible string

Encode soc name in the compatible string to know the specific version
hardware block.  This is the general approach adopted for most bindings.
Change mxs-pwm binding to use the approach.

Signed-off-by: Shawn Guo <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
This commit is contained in:
Shawn Guo 2012-06-26 16:58:08 +08:00 • committed by Thierry Reding
commit 071407eefd
2 changed files with 3 additions and 3 deletions

View file

@ -186,7 +186,7 @@ static int __devexit mxs_pwm_remove(struct platform_device *pdev)
}
static struct of_device_id mxs_pwm_dt_ids[] = {
{ .compatible = "fsl,mxs-pwm", },
{ .compatible = "fsl,imx23-pwm", },
{ /* sentinel */ }
};
MODULE_DEVICE_TABLE(of, mxs_pwm_dt_ids);