Skip to content

Commit

Permalink
ARM: 7193/1: Fix machine_is_xxx() naming for eSata SheevaPlug and QNA…
Browse files Browse the repository at this point in the history
…P TS-209

The eSata SheevaPlug and QNAP TS-209 devices were removed from
mach-types due to naming mismatches between machine_is_xxx(), CONFIG_XXX
and MACH_TYPE_XXX.

This patch fixes those mismatches and adds the devices back into
mach-types.

Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Jon Medhurst <tixy@yxit.co.uk>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Jon Medhurst (Tixy) authored and Russell King committed Dec 6, 2011
1 parent 023bfa3 commit d22759e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions arch/arm/mach-kirkwood/sheevaplug-setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ static void __init sheevaplug_init(void)
kirkwood_init();

/* setup gpio pin select */
if (machine_is_sheeva_esata())
if (machine_is_esata_sheevaplug())
kirkwood_mpp_conf(sheeva_esata_mpp_config);
else
kirkwood_mpp_conf(sheevaplug_mpp_config);
Expand All @@ -123,11 +123,11 @@ static void __init sheevaplug_init(void)
kirkwood_ge00_init(&sheevaplug_ge00_data);

/* honor lower power consumption for plugs with out eSATA */
if (machine_is_sheeva_esata())
if (machine_is_esata_sheevaplug())
kirkwood_sata_init(&sheeva_esata_sata_data);

/* enable sd wp and sd cd on plugs with esata */
if (machine_is_sheeva_esata())
if (machine_is_esata_sheevaplug())
kirkwood_sdio_init(&sheeva_esata_mvsdio_data);
else
kirkwood_sdio_init(&sheevaplug_mvsdio_data);
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-orion5x/ts209-setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ static struct hw_pci qnap_ts209_pci __initdata = {

static int __init qnap_ts209_pci_init(void)
{
if (machine_is_ts_x09())
if (machine_is_ts209())
pci_common_init(&qnap_ts209_pci);

return 0;
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/tools/mach-types
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ dns323 MACH_DNS323 DNS323 1542
omap3_beagle MACH_OMAP3_BEAGLE OMAP3_BEAGLE 1546
nokia_n810 MACH_NOKIA_N810 NOKIA_N810 1548
pcm038 MACH_PCM038 PCM038 1551
ts_x09 MACH_TS209 TS209 1565
ts209 MACH_TS209 TS209 1565
at91cap9adk MACH_AT91CAP9ADK AT91CAP9ADK 1566
mx31moboard MACH_MX31MOBOARD MX31MOBOARD 1574
vision_ep9307 MACH_VISION_EP9307 VISION_EP9307 1578
Expand Down Expand Up @@ -459,7 +459,7 @@ guruplug MACH_GURUPLUG GURUPLUG 2659
spear310 MACH_SPEAR310 SPEAR310 2660
spear320 MACH_SPEAR320 SPEAR320 2661
aquila MACH_AQUILA AQUILA 2676
sheeva_esata MACH_ESATA_SHEEVAPLUG ESATA_SHEEVAPLUG 2678
esata_sheevaplug MACH_ESATA_SHEEVAPLUG ESATA_SHEEVAPLUG 2678
msm7x30_surf MACH_MSM7X30_SURF MSM7X30_SURF 2679
ea2478devkit MACH_EA2478DEVKIT EA2478DEVKIT 2683
terastation_wxl MACH_TERASTATION_WXL TERASTATION_WXL 2697
Expand Down

0 comments on commit d22759e

Please sign in to comment.