diff options
| author | Peng Fan <[email protected]> | 2016-08-11 14:02:56 +0800 |
|---|---|---|
| committer | Stefano Babic <[email protected]> | 2016-10-04 15:41:01 +0200 |
| commit | 35ae99467dbe9f5674b5cd6fbc9951c0aa8c8269 (patch) | |
| tree | 0b3a4c5b4c987c12a7717e119fdc7827bab8eefe /drivers | |
| parent | b0a8e454510e5c4a00ccc4cbc0ec1c19ac520ed6 (diff) | |
dm: mmc: intialize dev when probe
Need to initialize mmc->dev when probe, or will met
"dev_get_uclass_priv: null device", when `mmc dev 1`.
Signed-off-by: Peng Fan <[email protected]>
Cc: Stefano Babic <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Jaehoon Chung <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/mmc/fsl_esdhc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index 103b32e9cf7..9796d39c65b 100644 --- a/drivers/mmc/fsl_esdhc.c +++ b/drivers/mmc/fsl_esdhc.c @@ -1010,6 +1010,7 @@ static int fsl_esdhc_probe(struct udevice *dev) } upriv->mmc = priv->mmc; + priv->mmc->dev = dev; return 0; } |
