Message ID | 20211224131300.18198-11-prabhakar.mahadev-lad.rj@bp.renesas.com |
---|---|
State | New |
Headers | show |
Series | [v3,01/10] ata: pata_platform: Make use of platform_get_mem_or_io() | expand |
diff --git a/drivers/ata/pata_platform.c b/drivers/ata/pata_platform.c index b37c1028fd54..b68bce361c74 100644 --- a/drivers/ata/pata_platform.c +++ b/drivers/ata/pata_platform.c @@ -253,8 +253,7 @@ static int pata_of_platform_get_pdata(struct platform_device *ofdev, priv->use16bit = of_property_read_bool(dn, "ata-generic,use16bit"); - priv->pio_mask = 1 << pio_mode; - priv->pio_mask |= (1 << pio_mode) - 1; + priv->pio_mask = GENMASK(pio_mode, 0); return 0; }