]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/spi/tegra20_sflash.c
spi: Kconfig: Add TEGRA20_SLINK entry
[karo-tx-uboot.git] / drivers / spi / tegra20_sflash.c
index 7d0d0f37fc70a7f5f5da821b2af8589bf59ac7a1..82c1b84f3bd953ec50dfdb0b4197448da3043584 100644 (file)
@@ -125,8 +125,9 @@ static int tegra20_sflash_probe(struct udevice *bus)
        return 0;
 }
 
-static int tegra20_sflash_claim_bus(struct udevice *bus)
+static int tegra20_sflash_claim_bus(struct udevice *dev)
 {
+       struct udevice *bus = dev->parent;
        struct tegra20_sflash_priv *priv = dev_get_priv(bus);
        struct spi_regs *regs = priv->regs;
        u32 reg;
@@ -348,6 +349,5 @@ U_BOOT_DRIVER(tegra20_sflash) = {
        .ofdata_to_platdata = tegra20_sflash_ofdata_to_platdata,
        .platdata_auto_alloc_size = sizeof(struct tegra_spi_platdata),
        .priv_auto_alloc_size = sizeof(struct tegra20_sflash_priv),
-       .per_child_auto_alloc_size      = sizeof(struct spi_slave),
        .probe  = tegra20_sflash_probe,
 };