ata: pata_parport: remove devtype from struct pi_adapter
authorOndrej Zary <linux@zary.sk>
Sat, 18 Feb 2023 22:01:26 +0000 (23:01 +0100)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Thu, 23 Mar 2023 01:29:25 +0000 (10:29 +0900)
commitec6e7a51d9eb1cd27840f7d8d5d05328631c9a15
tree0beca74013e9b7612cf85bbfc71518181ceb274c
parent2c08ec0f06a6ac71b78e26f82a88093094d70dc4
ata: pata_parport: remove devtype from struct pi_adapter

Only bpck driver uses devtype but it never gets set in pata_parport.
Remove it.
As most bpck devices are CD-ROMs, always run the code that depends
on devtype == PI_PCD.

Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Ondrej Zary <linux@zary.sk>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
drivers/ata/pata_parport/bpck.c
include/linux/pata_parport.h