Re: [PATCH] MIPS: Alchemy: move MMC driver registration to board code.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Manuel Lauss wrote:

Where it really belongs to.
I disagree (again). SoC platform devices dont belong with the board code.

Figured as much.  However with additional boards the #ifdef mess in
common/platform.c
is only going to get worse. MUCH worse.

We could probably eliminate the board #ifdef in platfrom.c by not supplying the platfrom data for MMC1.

Just look at the au1000-eth platform data situation!
I have these platform devices on Au1200/Au1300 even thought they don't have
a built-in MAC.

Need to add the SoC type checks then when registering the devices. Or at least the #ifdef's. :-)

The board which uses the device should register it.

  Contrarywise, the SoC that has the devices, should register them.

But, consider the patch withdrawn.

  Thanks.

Manuel

WBR, Sergei



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux