9
0
Fork 0

ahci-generic: add oftree support

calxeda use the generic driver but have it's own compatible cf Linux kernel
Documentation

Cc: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Jean-Christophe PLAGNIOL-VILLARD 2013-02-13 11:06:39 +01:00 committed by Sascha Hauer
parent a3f74d928c
commit 5f337b5452
1 changed files with 9 additions and 0 deletions

View File

@ -671,10 +671,19 @@ static int ahci_probe(struct device_d *dev)
return ret;
}
static __maybe_unused struct of_device_id ahci_dt_ids[] = {
{
.compatible = "calxeda,hb-ahci",
}, {
/* sentinel */
}
};
static struct driver_d ahci_driver = {
.name = "ahci",
.probe = ahci_probe,
.info = ahci_info,
.of_compatible = DRV_OF_COMPAT(ahci_dt_ids),
};
static int ahci_init(void)