ide/macide: Convert Mac IDE driver to platform driver

Add platform devices for the Mac IDE controller variants. Convert the
macide module into a platform driver to support two of those variants.
For the third, use a generic "pata_platform" driver instead.
This enables automatic loading of the appropriate module and begins
the process of replacing the driver with libata alternatives.

Signed-off-by: Finn Thain <>
Tested-by: Stan Johnson <>
Cc: Bartlomiej Zolnierkiewicz <>
Cc: Joshua Thompson <>
References: commit 5ed0794cde593 ("m68k/atari: Convert Falcon IDE drivers to platform drivers")
References: commit 7ad19a99ad431 ("ide: officially deprecated the legacy IDE driver")
Signed-off-by: Geert Uytterhoeven <>
5 files changed