Commit d2b507ac authored by Linus Walleij's avatar Linus Walleij
Browse files

pata: ixp4xx: Use IS_ENABLED() to determine endianness



Instead of an ARM-specific ifdef, use the global CPU config
and if (IS_ENABLED()).

Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent f62b3896
Loading
Loading
Loading
Loading
+22 −23
Original line number Diff line number Diff line
@@ -107,8 +107,7 @@ static void ixp4xx_setup_port(struct ata_port *ap,

	ata_sff_std_ports(ioaddr);

#ifndef __ARMEB__

	if (!IS_ENABLED(CONFIG_CPU_BIG_ENDIAN)) {
		/* adjust the addresses to handle the address swizzling of the
		 * ixp4xx in little endian mode.
		 */
@@ -129,7 +128,7 @@ static void ixp4xx_setup_port(struct ata_port *ap,

		raw_cmd ^= 0x03;
		raw_ctl ^= 0x03;
#endif
	}

	ata_port_desc(ap, "cmd 0x%lx ctl 0x%lx", raw_cmd, raw_ctl);
}