Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
ligo_ioremap.h 351 B
/*
 * The ioremap call changes names.
 *
 * In 5.10 we use ioremap, in older versions we use ioremap_nocache
 */

#ifndef ADVLIGORTS_LIGO_IOREMAP_H
#define ADVLIGORTS_LIGO_IOREMAP_H

#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
#define LIGO_IOREMAP ioremap_nocache
#else
#define LIGO_IOREMAP ioremap
#endif

#endif /* ADVLIGORTS_LIGO_IOREMAP_H */