d0176f612f
The flexible array in the USBH platform data is not safe to copy. The compiler will not allocate any extra memory for the non-init platform data structure (in the *_devices.c files) since it isn't given any defaults at compile time. When the probe function attempts to address that array, it will actually attempt to access data in an adjacent structure. Since there are currently no (known) implementations of the at91 USBH IP with more than 2 vbus pins, I am capping the value at 2. If somebody tries to assign more, then the compiler will produce a warning. Signed-off-by: Justin Waters <justin.waters@timesys.com> Acked-by: David Brownell <dbrownell@users.sourceforge.net> Acked-by: Andrew Victor <linux@maxim.org.za> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> |
||
---|---|---|
.. | ||
at91_adc.h | ||
at91_aic.h | ||
at91_dbgu.h | ||
at91_mci.h | ||
at91_pio.h | ||
at91_pit.h | ||
at91_pmc.h | ||
at91_rstc.h | ||
at91_rtc.h | ||
at91_rtt.h | ||
at91_shdwc.h | ||
at91_spi.h | ||
at91_ssc.h | ||
at91_st.h | ||
at91_tc.h | ||
at91_twi.h | ||
at91_wdt.h | ||
at91cap9_ddrsdr.h | ||
at91cap9_matrix.h | ||
at91cap9.h | ||
at91rm9200_emac.h | ||
at91rm9200_mc.h | ||
at91rm9200.h | ||
at91sam9_sdramc.h | ||
at91sam9_smc.h | ||
at91sam9rl_matrix.h | ||
at91sam9rl.h | ||
at91sam9260_matrix.h | ||
at91sam9260.h | ||
at91sam9261_matrix.h | ||
at91sam9261.h | ||
at91sam9263_matrix.h | ||
at91sam9263.h | ||
at91x40.h | ||
board.h | ||
cpu.h | ||
debug-macro.S | ||
entry-macro.S | ||
gpio.h | ||
hardware.h | ||
io.h | ||
irqs.h | ||
memory.h | ||
system.h | ||
timex.h | ||
uncompress.h | ||
vmalloc.h |