#include <linux/pinctrl/pinconf.h>
#include <linux/pinctrl/pinconf-generic.h>
#include <linux/platform_device.h>
+#include <linux/pm_runtime.h>
#include <linux/regmap.h>
#include <linux/slab.h>
#include <linux/module.h>
pctl->gc.irq.handler = handle_bad_irq;
pctl->gc.irq.init_hw = starfive_jh7110_sys_init_hw;
+ if (IS_ENABLED(CONFIG_PM))
+ pm_runtime_enable(dev);
+
ret = platform_get_irq(pdev, 0);
if (ret < 0)
return ret;
pctl->gc.irq.handler = handle_bad_irq;
pctl->gc.irq.init_hw = starfive_jh7110_aon_init_hw;
+ if (IS_ENABLED(CONFIG_PM))
+ pm_runtime_enable(dev);
+
ret = platform_get_irq(pdev, 0);
if (ret < 0)
return ret;