swiotlb: Convert swiotlb_force from int to enum
Convert the flag swiotlb_force from an int to an enum, to prepare for the advent of more possible values. Suggested-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
This commit is contained in:

committed by
Konrad Rzeszutek Wilk

parent
6c206e4d99
commit
ae7871be18
@@ -68,7 +68,7 @@ static struct dma_map_ops swiotlb_dma_ops = {
|
||||
*/
|
||||
int __init pci_swiotlb_detect_override(void)
|
||||
{
|
||||
if (swiotlb_force)
|
||||
if (swiotlb_force == SWIOTLB_FORCE)
|
||||
swiotlb = 1;
|
||||
|
||||
return swiotlb;
|
||||
|
Reference in New Issue
Block a user