static int rpmsg_probe(struct rpmsg_channel *_rpdev) { struct dce_rpc_connect_req req = { .hdr = MKHDR(CONNECT), .chipset_id = GET_OMAP_TYPE, .debug = drm_debug ? 1 : 3, }; int ret; DBG(""); rpdev = _rpdev; /* send connect msg: */ ret = rpsend(NULL, NULL, hdr(&req), sizeof(req)); if (ret) { DBG("rpsend failed: %d", ret); return ret; } return omap_drm_register_plugin(&plugin); } static void __devexit rpmsg_remove(struct rpmsg_channel *_rpdev) { DBG(""); omap_drm_unregister_plugin(&plugin); rpdev = NULL; }
static void __exit PVRSRVDrmExit(void) { #if defined(SUPPORT_DRI_DRM_EXTERNAL) omap_drm_unregister_mapper(pvr_mapper_id); omap_drm_unregister_plugin(&plugin); #else drm_exit(&sPVRDrmDriver); #if defined(PVR_DRI_DRM_NOT_PCI) drm_pvr_dev_remove(); #endif #endif }