diff options
author | Rob Herring <rob.herring@calxeda.com> | 2010-11-04 05:04:59 +0300 |
---|---|---|
committer | Rob Herring <rob.herring@calxeda.com> | 2011-11-04 00:52:38 +0400 |
commit | 02aac316abf436a7529d46a71f7083f9f9ef4b49 (patch) | |
tree | f6104530b98e312d146a3c3780b79de238ec4763 /drivers/ata | |
parent | 303f59d1a71ebf1ede04b2adb07e3f545e53b7ba (diff) | |
download | linux-02aac316abf436a7529d46a71f7083f9f9ef4b49.tar.xz |
ahci: add DT binding for Calxeda AHCI controller
Add devicetree match table to ahci platform driver for Calxeda Highbank
AHCI controller.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Cc: Jeff Garzik <jgarzik@pobox.com>
Cc: linux-ide@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: devicetree-discuss@lists.ozlabs.org
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/ahci_platform.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/ata/ahci_platform.c b/drivers/ata/ahci_platform.c index c03277d37748..004f2ce3dc73 100644 --- a/drivers/ata/ahci_platform.c +++ b/drivers/ata/ahci_platform.c @@ -202,11 +202,18 @@ static int __devexit ahci_remove(struct platform_device *pdev) return 0; } +static const struct of_device_id ahci_of_match[] = { + { .compatible = "calxeda,hb-ahci", }, + {}, +}; +MODULE_DEVICE_TABLE(of, ahci_of_match); + static struct platform_driver ahci_driver = { .remove = __devexit_p(ahci_remove), .driver = { .name = "ahci", .owner = THIS_MODULE, + .of_match_table = ahci_of_match, }, .id_table = ahci_devtype, }; |