diff --git a/services4/srvkm/env/linux/module.c b/services4/srvkm/env/linux/module.c index 668dc2d..2247aad 100644 --- a/services4/srvkm/env/linux/module.c +++ b/services4/srvkm/env/linux/module.c @@ -84,6 +84,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include #include #include +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)) +#include +#endif #if defined(SUPPORT_DRI_DRM) #include @@ -296,10 +299,24 @@ static struct platform_device_id powervr_id_table[] __devinitdata = { }; #endif +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)) +static const struct of_device_id omap_sgx_of_match[] = { + { + .compatible = "ti,sgx", + }, + {}, +}; +MODULE_DEVICE_TABLE(of, omap_sgx_of_match); +#endif + + static LDM_DRV powervr_driver = { #if defined(PVR_LDM_PLATFORM_MODULE) .driver = { .name = DRVNAME, +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)) + .of_match_table = of_match_ptr(omap_sgx_of_match), +#endif }, #endif #if defined(PVR_LDM_PCI_MODULE) @@ -362,7 +379,7 @@ static int __devinit PVRSRVDriverProbe(LDM_DEV *pDevice, const struct pci_device #endif { SYS_DATA *psSysData; - + PVR_TRACE(("PVRSRVDriverProbe(pDevice=%p)", pDevice)); #if 0 /* INTEGRATION_POINT */ -- 1.7.9.5