mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-21 04:53:46 -04:00
drm/nouveau/pci: switch to instanced constructor
Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Reviewed-by: Lyude Paul <lyude@redhat.com>
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
#define nvkm_pci(p) container_of((p), struct nvkm_pci, subdev)
|
||||
#include <subdev/pci.h>
|
||||
|
||||
int nvkm_pci_new_(const struct nvkm_pci_func *, struct nvkm_device *,
|
||||
int index, struct nvkm_pci **);
|
||||
int nvkm_pci_new_(const struct nvkm_pci_func *, struct nvkm_device *, enum nvkm_subdev_type, int,
|
||||
struct nvkm_pci **);
|
||||
|
||||
struct nvkm_pci_func {
|
||||
void (*init)(struct nvkm_pci *);
|
||||
|
||||
Reference in New Issue
Block a user