The pata_falcon data byte swapping patch relies on pdev->id being 0 or 1. Q40 uses these IDs, but Atari used -1. Change pdev->id to 0 for Atari Falcon IDE platform device so selection of drive to byte-swap through pata_falcon.data_swab can be used on Falcon as well. Tested on ARAnyM so far. Signed-off-by: Michael Schmitz <schmitzmic@xxxxxxxxx> --- arch/m68k/atari/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/m68k/atari/config.c b/arch/m68k/atari/config.c index 38a7c0578105..e3e437cd0f84 100644 --- a/arch/m68k/atari/config.c +++ b/arch/m68k/atari/config.c @@ -925,7 +925,7 @@ int __init atari_platform_init(void) #endif if (ATARIHW_PRESENT(IDE)) { - pdev = platform_device_register_simple("atari-falcon-ide", -1, + pdev = platform_device_register_simple("atari-falcon-ide", 0, atari_falconide_rsrc, ARRAY_SIZE(atari_falconide_rsrc)); if (IS_ERR(pdev)) rv = PTR_ERR(pdev); -- 2.17.1