Skip to content

Commit b555aa6

Browse files
Ondrej Zarydamien-lemoal
authored andcommitted
ata: pata_parport: fix pata_parport_devchk
There's a 'x' missing in 0x55 in pata_parport_devchk(), causing the detection to always fail. Fix it. Fixes: 246a1c4 ("ata: pata_parport: add driver (PARIDE replacement)") Cc: stable@vger.kernel.org Signed-off-by: Ondrej Zary <linux@zary.sk> Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru> Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
1 parent 94f6f05 commit b555aa6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/ata/pata_parport/pata_parport.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ static bool pata_parport_devchk(struct ata_port *ap, unsigned int device)
6464
pi->proto->write_regr(pi, 0, ATA_REG_NSECT, 0xaa);
6565
pi->proto->write_regr(pi, 0, ATA_REG_LBAL, 0x55);
6666

67-
pi->proto->write_regr(pi, 0, ATA_REG_NSECT, 055);
67+
pi->proto->write_regr(pi, 0, ATA_REG_NSECT, 0x55);
6868
pi->proto->write_regr(pi, 0, ATA_REG_LBAL, 0xaa);
6969

7070
nsect = pi->proto->read_regr(pi, 0, ATA_REG_NSECT);

0 commit comments

Comments
 (0)