Don't allocate same clock twice..
MFC after: 1 week Reported by: jah
This commit is contained in:
parent
74a2bcfa80
commit
e609023c0b
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user