Re: [PATCH 2/2] arm: omap: ehci: avoid compiler error with touchbook

Felipe Balbi
2010-03-09T14:30:15Z

Hi,

On Mon, Mar 08, 2010 at 03:04:23PM -0800, Tony Lindgren wrote:
> Hmm yeah thanks for digging into this mystery. Looks like we're
> hitting some Linux initdata limitation.
>
> We can't mark everything as __initconst. Some platform data can
> get dynamically set based on the board type for resources.
>
> So to me it sounds like the only solution is to mark everything
> as __initdata and ignore the (correct) const for now for __initdata.
>
> Or am I missing something?

sure. I'll cook something. But then it means all ehci_hcd_platform_data
won't be able to be declared as const or that might cause problems as
well later.

--
balbi