]> git.ipfire.org Git - people/ms/u-boot.git/commit
musb: sunxi: Do not allocate musb struct multiple times
authorHans de Goede <hdegoede@redhat.com>
Sat, 2 Apr 2016 18:46:09 +0000 (20:46 +0200)
committerMarek Vasut <marex@denx.de>
Sun, 10 Apr 2016 15:18:43 +0000 (17:18 +0200)
commit38b4a3e14397582549b3bb1b301fd9b5c7fc89d2
tree425bc83eb20938875ef34a7d4c50ca474f3542f1
parentcf1254738537b24308699a4ea0081e52723933b0
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>
drivers/usb/musb-new/sunxi.c