From 745c7c4bfdd0c58abab5af3c44b29ac468f274df Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lothar=20Wa=C3=9Fmann?= Date: Fri, 7 Mar 2014 09:34:01 +0100 Subject: [PATCH] pwm: deprecate of_pwm_xlate_with_flags() --- drivers/pwm/core.c | 4 ++-- include/linux/pwm.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c index bca83ba2b618..0b0a73348656 100644 --- a/drivers/pwm/core.c +++ b/drivers/pwm/core.c @@ -160,8 +160,8 @@ static struct pwm_device *of_pwm_xlate(struct pwm_chip *pc, } struct pwm_device * -of_pwm_xlate_with_flags(struct pwm_chip *pc, - const struct of_phandle_args *args) +__deprecated of_pwm_xlate_with_flags(struct pwm_chip *pc, + const struct of_phandle_args *args) { return of_pwm_xlate(pc, args); } diff --git a/include/linux/pwm.h b/include/linux/pwm.h index f0feafd184a0..0a9e2f72750b 100644 --- a/include/linux/pwm.h +++ b/include/linux/pwm.h @@ -188,7 +188,7 @@ struct pwm_device *pwm_request_from_chip(struct pwm_chip *chip, unsigned int index, const char *label); -struct pwm_device *of_pwm_xlate_with_flags(struct pwm_chip *pc, +struct pwm_device * __deprecated of_pwm_xlate_with_flags(struct pwm_chip *pc, const struct of_phandle_args *args); struct pwm_device *pwm_get(struct device *dev, const char *con_id); -- 2.39.2