diff options
author | Vignesh Raghavendra <vigneshr@ti.com> | 2025-03-05 14:11:30 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-03-13 14:23:05 -0600 |
commit | 628908f849e1a8c99c47aad0df0e4feb7a6b2c9d (patch) | |
tree | a6a73c06deefcb0012c295cf2ed10d06348f5b9c | |
parent | 91156b63464f6166c73bffa3bf59790be7d8786f (diff) |
memory: ti-gpmc: Alloc per driver private struct
Driver uses dev_get_priv() but never allocates it in its
declaration leading to various crashes. Fix this by explicitly
allocating the storage.
Fixes: 9b0b5648d6e4 ("memory: Add TI GPMC driver")
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
-rw-r--r-- | drivers/memory/ti-gpmc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/memory/ti-gpmc.c b/drivers/memory/ti-gpmc.c index e979c431e33..29e02f12ae0 100644 --- a/drivers/memory/ti-gpmc.c +++ b/drivers/memory/ti-gpmc.c @@ -1242,4 +1242,5 @@ U_BOOT_DRIVER(ti_gpmc) = { .of_match = gpmc_dt_ids, .probe = gpmc_probe, .flags = DM_FLAG_ALLOC_PRIV_DMA, + .priv_auto = sizeof(struct ti_gpmc), }; |