diff options
Diffstat (limited to 'drivers/mtd/altera_qspi.c')
-rw-r--r-- | drivers/mtd/altera_qspi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/altera_qspi.c b/drivers/mtd/altera_qspi.c index 9a3a21f2e3..250fb4f75f 100644 --- a/drivers/mtd/altera_qspi.c +++ b/drivers/mtd/altera_qspi.c @@ -346,7 +346,7 @@ static int altera_qspi_probe(struct udevice *dev) return 0; } -static int altera_qspi_ofdata_to_platdata(struct udevice *dev) +static int altera_qspi_of_to_plat(struct udevice *dev) { struct altera_qspi_platdata *pdata = dev_get_plat(dev); void *blob = (void *)gd->fdt_blob; @@ -400,7 +400,7 @@ U_BOOT_DRIVER(altera_qspi) = { .name = "altera_qspi", .id = UCLASS_MTD, .of_match = altera_qspi_ids, - .ofdata_to_platdata = altera_qspi_ofdata_to_platdata, + .of_to_plat = altera_qspi_of_to_plat, .plat_auto = sizeof(struct altera_qspi_platdata), .probe = altera_qspi_probe, }; |