summaryrefslogtreecommitdiff
path: root/drivers/ata/ahci-uclass.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-07-04 22:31:22 +0300
committerJaehoon Chung <jh80.chung@samsung.com>2017-08-01 05:58:01 +0300
commitbfc1c6b4838501d10aa48c0e92eaf70976f4b2dd (patch)
treec81d5e7c441dc3bf936b755caf3abc9beaed4f1c /drivers/ata/ahci-uclass.c
parent068a2fc1d500866e37f0ecc98806444c2996b25d (diff)
downloadu-boot-bfc1c6b4838501d10aa48c0e92eaf70976f4b2dd.tar.xz
dm: ahci: Correct uclass private data
This is expected to be attached to the uclass and the code operates that way, but the uclass has not been updated. Fix it to avoid using memory at address 0. Signed-off-by: Simon Glass <sjg@chromium.org> Fixes: 47fc61a (dm: ahci: Drop use of probe_ent)
Diffstat (limited to 'drivers/ata/ahci-uclass.c')
-rw-r--r--drivers/ata/ahci-uclass.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/ata/ahci-uclass.c b/drivers/ata/ahci-uclass.c
index 7b8c32699f..71600fed68 100644
--- a/drivers/ata/ahci-uclass.c
+++ b/drivers/ata/ahci-uclass.c
@@ -6,9 +6,11 @@
*/
#include <common.h>
+#include <ahci.h>
#include <dm.h>
UCLASS_DRIVER(ahci) = {
.id = UCLASS_AHCI,
.name = "ahci",
+ .per_device_auto_alloc_size = sizeof(struct ahci_uc_priv),
};