msm: kgsl: Use a consolidated IRQ handler
For some reason while everything else in KGSL was organized into
the kgsl_device hooks the chip specific interrupt handler pointer
was being passed through the device registration function. Make
the IRQ handler work the same way as the other hooks. this reduces
the complexity and reduces the chip specific variables passed into
the generic registration to just one pointer.
Change-Id: Ic0dedbadff1641cbca80593e91744dbb6dcfd2cc
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
diff --git a/drivers/gpu/msm/kgsl_device.h b/drivers/gpu/msm/kgsl_device.h
index 7d3cfca..b42e606 100644
--- a/drivers/gpu/msm/kgsl_device.h
+++ b/drivers/gpu/msm/kgsl_device.h
@@ -94,6 +94,7 @@
unsigned int (*gpuid)(struct kgsl_device *device);
void * (*snapshot)(struct kgsl_device *device, void *snapshot,
int *remain, int hang);
+ irqreturn_t (*irq_handler)(struct kgsl_device *device);
/* Optional functions - these functions are not mandatory. The
driver will check that the function pointer is not NULL before
calling the hook */
@@ -340,8 +341,8 @@
int kgsl_unregister_ts_notifier(struct kgsl_device *device,
struct notifier_block *nb);
-int kgsl_device_platform_probe(struct kgsl_device *device,
- irqreturn_t (*dev_isr) (int, void*));
+int kgsl_device_platform_probe(struct kgsl_device *device);
+
void kgsl_device_platform_remove(struct kgsl_device *device);
const char *kgsl_pwrstate_to_str(unsigned int state);