[v2] paride: Mark PARIDE as deprecated, point to PATA_PARPORT
Commit Message
Add Kconfig and runtime deprecation warnings to PARIDE, pointing users
to PATA_PARPORT.
Signed-off-by: Ondrej Zary <linux@zary.sk>
---
drivers/block/Kconfig | 4 +++-
drivers/block/paride/paride.c | 2 ++
2 files changed, 5 insertions(+), 1 deletion(-)
@@ -104,7 +104,7 @@ config GDROM
You can also build this as a module which will be called gdrom.
config PARIDE
- tristate "Parallel port IDE device support"
+ tristate "Parallel port IDE device support (DEPRECATED)"
depends on PARPORT_PC
help
There are many external CD-ROM and disk devices that connect through
@@ -130,6 +130,8 @@ config PARIDE
"MicroSolutions backpack protocol", "DataStor Commuter protocol"
etc.).
+ This driver is deprecated, replaced by libata-based PATA_PARPORT.
+
source "drivers/block/paride/Kconfig"
source "drivers/block/mtip32xx/Kconfig"
@@ -452,6 +452,8 @@ void *pi_register_driver(char *name)
struct parport_driver *parp_drv;
int ret;
+ pr_warn("PARIDE is deprecated. Use PATA_PARPORT instead.\n");
+
parp_drv = kzalloc(sizeof(*parp_drv), GFP_KERNEL);
if (!parp_drv)
return NULL;