Commit 1523226e authored by Thorsten Blum's avatar Thorsten Blum Committed by Matt Turner
Browse files

alpha: Use str_yes_no() helper in pci_dac_dma_supported()



Remove hard-coded strings by using the str_yes_no() helper function.

Reviewed-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarThorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: default avatarMatt Turner <mattst88@gmail.com>
parent 757f051a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@
#include <linux/log2.h>
#include <linux/dma-map-ops.h>
#include <linux/iommu-helper.h>
#include <linux/string_choices.h>

#include <asm/io.h>
#include <asm/hwrpb.h>
@@ -212,7 +213,7 @@ static int pci_dac_dma_supported(struct pci_dev *dev, u64 mask)

	/* If both conditions above are met, we are fine. */
	DBGA("pci_dac_dma_supported %s from %ps\n",
	     ok ? "yes" : "no", __builtin_return_address(0));
	     str_yes_no(ok), __builtin_return_address(0));

	return ok;
}