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: [email protected] Signed-off-by: Ondrej Zary <[email protected]> Reviewed-by: Sergey Shtylyov <[email protected]> Signed-off-by: Damien Le Moal <[email protected]>
1 parent 94f6f05 commit b555aa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)