drm: Fill in fake connector->kdev pointing at the drm device.

Hope this will make progress -- hope it won't screw up too badly if
two connectors have the same kdev!
This commit is contained in:
riastradh 2021-12-19 12:30:31 +00:00
parent c185307488
commit 1b0e394141
1 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: drm_sysfs.c,v 1.8 2021/12/19 10:39:42 riastradh Exp $ */
/* $NetBSD: drm_sysfs.c,v 1.9 2021/12/19 12:30:31 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@ -30,8 +30,10 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: drm_sysfs.c,v 1.8 2021/12/19 10:39:42 riastradh Exp $");
__KERNEL_RCSID(0, "$NetBSD: drm_sysfs.c,v 1.9 2021/12/19 12:30:31 riastradh Exp $");
#include <drm/drm_device.h>
#include <drm/drm_connector.h>
#include <drm/drm_sysfs.h>
#include "../dist/drm/drm_internal.h"
@ -39,6 +41,7 @@ __KERNEL_RCSID(0, "$NetBSD: drm_sysfs.c,v 1.8 2021/12/19 10:39:42 riastradh Exp
int
drm_sysfs_connector_add(struct drm_connector *connector)
{
connector->kdev = connector->dev->dev; /* XXX */
return 0;
}