Don't allocate same clock twice..

MFC after:	1 week
Reported by:	jah
This commit is contained in:
Michal Meloun 2019-02-10 14:30:15 +00:00
parent 74a2bcfa80
commit e609023c0b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=343963

View File

@ -311,13 +311,6 @@ tegra_sdhci_attach(device_t dev)
gpio_pin_get_by_ofw_property(sc->dev, node, "power-gpios", &sc->gpio_power);
rv = clk_get_by_ofw_index(dev, 0, 0, &sc->clk);
if (rv != 0) {
device_printf(dev, "Cannot get clock\n");
goto fail;
}
rv = clk_get_by_ofw_index(dev, 0, 0, &sc->clk);
if (rv != 0) {
device_printf(dev, "Cannot get clock\n");