diff options
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/pata_pcmcia.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ata/pata_pcmcia.c b/drivers/ata/pata_pcmcia.c index a808ba03bd7f..958238dda8fc 100644 --- a/drivers/ata/pata_pcmcia.c +++ b/drivers/ata/pata_pcmcia.c | |||
@@ -170,7 +170,8 @@ static int pcmcia_check_one_config(struct pcmcia_device *pdev, void *priv_data) | |||
170 | { | 170 | { |
171 | int *is_kme = priv_data; | 171 | int *is_kme = priv_data; |
172 | 172 | ||
173 | if (!(pdev->resource[0]->flags & IO_DATA_PATH_WIDTH_8)) { | 173 | if ((pdev->resource[0]->flags & IO_DATA_PATH_WIDTH) |
174 | != IO_DATA_PATH_WIDTH_8) { | ||
174 | pdev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; | 175 | pdev->resource[0]->flags &= ~IO_DATA_PATH_WIDTH; |
175 | pdev->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO; | 176 | pdev->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO; |
176 | } | 177 | } |