[POWERPC] mpc5200: normalize compatible property bindings
Update MPC5200 drivers to also look for compatible properties in the form "fsl,mpc5200-*" to better conform to open firmware generic names recommended practice as published here: http://www.openfirmware.org/1275/practice/gnames/gnamv14a.html This patch should *not* break compatibility with older device trees which do not use the 'fsl,' prefix. The drivers will still bind against the older names also. Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
This commit is contained in:
@@ -628,8 +628,9 @@ static int __exit mpc52xx_psc_spi_of_remove(struct of_device *op)
|
||||
}
|
||||
|
||||
static struct of_device_id mpc52xx_psc_spi_of_match[] = {
|
||||
{ .type = "spi", .compatible = "mpc5200-psc-spi", },
|
||||
{},
|
||||
{ .compatible = "fsl,mpc5200-psc-spi", },
|
||||
{ .compatible = "mpc5200-psc-spi", }, /* old */
|
||||
{}
|
||||
};
|
||||
|
||||
MODULE_DEVICE_TABLE(of, mpc52xx_psc_spi_of_match);
|
||||
|
Reference in New Issue
Block a user