/alps/pcitool

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to driver/compat.h

  • Committer: Suren A. Chilingaryan
  • Date: 2020-07-24 02:56:58 UTC
  • Revision ID: csa@suren.me-20200724025658-uva6vqyos3sm9cmd
Kernel 5.5 compatibility (patch from Timo)

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
# define get_user_pages_compat(vma, nr, pages) get_user_pages(current, current->mm, vma, nr, 1, 0, pages, NULL)
49
49
#endif
50
50
 
 
51
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,5,0)
 
52
# define ioremap_nocache ioremap
 
53
// ioremap_nocache and ioremap are now platform independent and identical, as of
 
54
// Kernel Version 5.5
 
55
// https://lore.kernel.org/linux-mips/20191209194819.GA28157@lst.de/T/ 
 
56
#endif
51
57
 
52
58
#endif