浏览代码

ata: ahci_platform: add a generic AHCI compatible

The ahci_platform driver is a generic driver using the libahci_platform
functions. Add a generic compatible to avoid having an endless list of
compatibles with no differences for the same driver.

Signed-off-by: Antoine Ténart <antoine.tenart@free-electrons.com>
Antoine Ténart 11 年之前
父节点
当前提交
30f3c73c9b
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/ata/ahci_platform.c

+ 2 - 0
drivers/ata/ahci_platform.c

@@ -76,6 +76,8 @@ static SIMPLE_DEV_PM_OPS(ahci_pm_ops, ahci_platform_suspend,
 			 ahci_platform_resume);
 			 ahci_platform_resume);
 
 
 static const struct of_device_id ahci_of_match[] = {
 static const struct of_device_id ahci_of_match[] = {
+	{ .compatible = "generic-ahci", },
+	/* Keep the following compatibles for device tree compatibility */
 	{ .compatible = "snps,spear-ahci", },
 	{ .compatible = "snps,spear-ahci", },
 	{ .compatible = "snps,exynos5440-ahci", },
 	{ .compatible = "snps,exynos5440-ahci", },
 	{ .compatible = "ibm,476gtr-ahci", },
 	{ .compatible = "ibm,476gtr-ahci", },