return 0;
}
+extern void kbase_platform_rk_shutdown(struct kbase_device *kbdev);
+static void kbase_platform_device_shutdown(struct platform_device *pdev)
+{
+ struct kbase_device *kbdev = to_kbase_device(&pdev->dev);
+
+ kbase_platform_rk_shutdown(kbdev);
+}
+
static int kbase_platform_device_probe(struct platform_device *pdev)
{
struct kbase_device *kbdev;
static struct platform_driver kbase_platform_driver = {
.probe = kbase_platform_device_probe,
.remove = kbase_platform_device_remove,
+ .shutdown = kbase_platform_device_shutdown,
.driver = {
.name = kbase_drv_name,
.owner = THIS_MODULE,
/*---------------------------------------------------------------------------*/
+void kbase_platform_rk_shutdown(struct kbase_device *kbdev)
+{
+ I("to make vdd_gpu enabled for turning off pd_gpu in pm_framework.");
+ rk_pm_enable_regulator(kbdev);
+}
+
+/*---------------------------------------------------------------------------*/
+
static int rk_pm_enable_regulator(struct kbase_device *kbdev)
{
int ret = 0;