commit | 38b4a3e14397582549b3bb1b301fd9b5c7fc89d2 | [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 | cf1254738537b24308699a4ea0081e52723933b0 [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>