goto fail1;
}
- ret = drm_addmap(vigs_dev->drm_dev,
+ ret = drm_legacy_addmap(vigs_dev->drm_dev,
vigs_dev->io_base,
vigs_dev->io_size,
_DRM_REGISTERS,
*/
drm_dev->vblank_disable_allowed = 1;
- ret = drm_irq_install(drm_dev);
+ ret = drm_irq_install(drm_dev, drm_dev->pdev->irq);
if (ret != 0) {
goto fail8;
fail3:
vigs_mman_destroy(vigs_dev->mman);
fail2:
- drm_rmmap(vigs_dev->drm_dev, vigs_dev->io_map);
+ drm_legacy_rmmap(vigs_dev->drm_dev, vigs_dev->io_map);
fail1:
idr_destroy(&vigs_dev->surface_idr);
mutex_destroy(&vigs_dev->surface_idr_mutex);
vigs_fenceman_destroy(vigs_dev->fenceman);
ttm_object_device_release(&vigs_dev->obj_dev);
vigs_mman_destroy(vigs_dev->mman);
- drm_rmmap(vigs_dev->drm_dev, vigs_dev->io_map);
+ drm_legacy_rmmap(vigs_dev->drm_dev, vigs_dev->io_map);
idr_destroy(&vigs_dev->surface_idr);
mutex_destroy(&vigs_dev->surface_idr_mutex);
}
#define _VIGS_DEVICE_H_
#include "drmP.h"
+#include "drm_legacy.h"
#include "vigs_protocol.h"
struct vigs_mman;
.dumb_map_offset = vigs_gem_dumb_map_offset,
.dumb_destroy = vigs_gem_dumb_destroy,
.ioctls = vigs_drm_ioctls,
- .num_ioctls = DRM_ARRAY_SIZE(vigs_drm_ioctls),
+ .num_ioctls = ARRAY_SIZE(vigs_drm_ioctls),
.fops = &vigs_drm_driver_fops,
.name = DRIVER_NAME,
.desc = DRIVER_DESC,
{
struct drm_fb_helper *fb_helper = fbi->par;
struct drm_device *dev = fb_helper->dev;
- struct drm_crtc_helper_funcs *crtc_funcs;
+ const struct drm_crtc_helper_funcs *crtc_funcs;
u16 *red, *green, *blue, *transp;
struct drm_crtc *crtc;
int i, j, ret = 0;
#define _VIGS_GEM_H_
#include "drmP.h"
+#include "drm_gem.h"
#include <ttm/ttm_bo_driver.h>
#include <ttm/ttm_object.h>
struct ttm_buffer_object *bo;
if (unlikely(vma->vm_pgoff < DRM_FILE_PAGE_OFFSET)) {
- return drm_mmap(filp, vma);
+ return drm_legacy_mmap(filp, vma);
}
vigs_vma = kmem_cache_alloc(mman->vma_cache, GFP_KERNEL);
DRM_DEBUG_KMS("enter\n");
- drm_sysfs_connector_remove(connector);
+ drm_connector_unregister(connector);
drm_connector_cleanup(connector);
kfree(vigs_output);
drm_connector_helper_add(&vigs_output->connector, &vigs_connector_helper_funcs);
- ret = drm_sysfs_connector_add(&vigs_output->connector);
+ ret = drm_connector_register(&vigs_output->connector);
if (ret != 0) {
return ret;