[ARM] pxa: avoid registering multiple pxa2xx_pcmcia devices
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Thu, 24 Apr 2008 14:23:25 +0000 (15:23 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 2 Jun 2008 12:49:15 +0000 (13:49 +0100)
commit04ba0f656f7580d8a51a5b3441e088309141b67a
tree47a35af9f03930c3308d8e0112b1e7d41b3bb189
parent720046de27ec2a96d4497dbca8ee98657efa059c
[ARM] pxa: avoid registering multiple pxa2xx_pcmcia devices

cm_x270 and mainstone both register their PCMCIA devices using the same
name, resulting in a warning message from the kernel.  Avoid this by
making the cm_x270 and mainstone PCMCIA initialisation conditional on
the machine type we're running on.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/pcmcia/pxa2xx_cm_x270.c
drivers/pcmcia/pxa2xx_mainstone.c