Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PM / devfreq: event: remove duplicate devfreq_event_get_drvdata()

there define two devfreq_event_get_drvdata() function in devfreq-event.h
when disable CONFIG_PM_DEVFREQ_EVENT, it will lead to build fail. So
remove devfreq_event_get_drvdata() function.

Fixes: f262f28c1470 ("PM / devfreq: event: Add devfreq_event class")
Cc: stable@vger.kernel.org
Signed-off-by: Lin Huang <hl@rock-chips.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>

authored by

Lin Huang and committed by
MyungJoo Ham
c8a9a6da 989a0fc7

-5
-5
include/linux/devfreq-event.h
··· 148 148 return -EINVAL; 149 149 } 150 150 151 - static inline void *devfreq_event_get_drvdata(struct devfreq_event_dev *edev) 152 - { 153 - return ERR_PTR(-EINVAL); 154 - } 155 - 156 151 static inline struct devfreq_event_dev *devfreq_event_get_edev_by_phandle( 157 152 struct device *dev, int index) 158 153 {