diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2014-08-11 13:56:56 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2014-10-02 13:25:42 +1000 |
commit | a9b6773c64335c9f5ca4f69202877762ebe43ce6 (patch) | |
tree | 55abac08cbe53ea87e6ccb662b8828b0ab215eaa /nvkm/subdev/gpio | |
parent | 7ee3e50e80366a9c8ef1f2ad046d5113f11638bc (diff) | |
download | nouveau-a9b6773c64335c9f5ca4f69202877762ebe43ce6.tar.gz |
core: pass related object into notify constructor
The event source types/index might need to be derived from it.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'nvkm/subdev/gpio')
-rw-r--r-- | nvkm/subdev/gpio/base.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nvkm/subdev/gpio/base.c b/nvkm/subdev/gpio/base.c index b1e3ed7c8..7ad99b763 100644 --- a/nvkm/subdev/gpio/base.c +++ b/nvkm/subdev/gpio/base.c @@ -122,7 +122,8 @@ nouveau_gpio_intr_init(struct nvkm_event *event, int type, int index) } static int -nouveau_gpio_intr_ctor(void *data, u32 size, struct nvkm_notify *notify) +nouveau_gpio_intr_ctor(struct nouveau_object *object, void *data, u32 size, + struct nvkm_notify *notify) { struct nvkm_gpio_ntfy_req *req = data; if (!WARN_ON(size != sizeof(*req))) { |