commit | ec89e16f23b9a6fbfd30148053d5e0656faaeb9d | [log] [tgz] |
---|---|---|
author | Hans de Goede <hdegoede@redhat.com> | Sat Apr 02 20:46:09 2016 +0200 |
committer | Marek Vasut <marex@denx.de> | Sun Apr 10 17:18:43 2016 +0200 |
tree | 425bc83eb20938875ef34a7d4c50ca474f3542f1 | |
parent | 87c7eda80dcabfa356687aee5e489d280a63ee5d [diff] |
musb: sunxi: Do not allocate musb struct multiple times The probe function of the musb host driver can be called multiple times. The code assumes that it can save the pointer to the allocated musb struct in the driver model priv_auto_alloc data, but this data gets free-ed on a probe failure or on removal, so we must save the pointer elsewhere. Signed-off-by: Hans de Goede <hdegoede@redhat.com>