Update AHCI driver to match new dts tree

phy name parameter was changed from "sata-phy" to "sata-0" in new dts tree
introduced in r306197
This commit is contained in:
Oleksandr Tymoshenko 2016-09-25 23:45:49 +00:00
parent 5a1302ab2e
commit 23ea1f2b1d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=306327

View File

@ -255,7 +255,7 @@ get_fdt_resources(struct tegra_ahci_sc *sc, phandle_t node)
return (ENXIO);
}
rv = phy_get_by_ofw_name(sc->dev, 0, "sata-phy", &sc->phy);
rv = phy_get_by_ofw_name(sc->dev, 0, "sata-0", &sc->phy);
if (rv != 0) {
device_printf(sc->dev, "Cannot get 'sata' phy\n");
return (ENXIO);