Mercurial > pt1
diff driver/pt1_pci.c @ 138:45b4afa656d2
adapted to kernel 3.8.0
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Thu, 25 Apr 2013 15:08:34 +0900 |
parents | 2dc994610477 |
children | 1e7718cc2556 |
line wrap: on
line diff
--- a/driver/pt1_pci.c Thu Apr 25 15:08:32 2013 +0900 +++ b/driver/pt1_pci.c Thu Apr 25 15:08:34 2013 +0900 @@ -44,6 +44,13 @@ #include "pt1_tuner_data.h" #include "pt1_ioctl.h" +#if LINUX_VERSION_CODE > KERNEL_VERSION(3,8,0) +#define __devinit +#define __devinitdata +#define __devexit +#define __devexit_p +#endif + /* These identify the driver base version and may not be removed. */ static char version[] __devinitdata = DRV_NAME ".c: " DRV_VERSION " " DRV_RELDATE " \n";