File tree Expand file tree Collapse file tree 2 files changed +3
-17
lines changed Expand file tree Collapse file tree 2 files changed +3
-17
lines changed Original file line number Diff line number Diff line change @@ -396,9 +396,9 @@ static int pwm_device_request(struct pwm_device *pwm, const char *label)
396
396
* chip. A negative error code is returned if the index is not valid for the
397
397
* specified PWM chip or if the PWM device cannot be requested.
398
398
*/
399
- struct pwm_device * pwm_request_from_chip (struct pwm_chip * chip ,
400
- unsigned int index ,
401
- const char * label )
399
+ static struct pwm_device * pwm_request_from_chip (struct pwm_chip * chip ,
400
+ unsigned int index ,
401
+ const char * label )
402
402
{
403
403
struct pwm_device * pwm ;
404
404
int err ;
@@ -416,8 +416,6 @@ struct pwm_device *pwm_request_from_chip(struct pwm_chip *chip,
416
416
mutex_unlock (& pwm_lock );
417
417
return pwm ;
418
418
}
419
- EXPORT_SYMBOL_GPL (pwm_request_from_chip );
420
-
421
419
422
420
struct pwm_device *
423
421
of_pwm_xlate_with_flags (struct pwm_chip * chip , const struct of_phandle_args * args )
Original file line number Diff line number Diff line change @@ -410,10 +410,6 @@ void pwmchip_remove(struct pwm_chip *chip);
410
410
int __devm_pwmchip_add (struct device * dev , struct pwm_chip * chip , struct module * owner );
411
411
#define devm_pwmchip_add (dev , chip ) __devm_pwmchip_add(dev, chip, THIS_MODULE)
412
412
413
- struct pwm_device * pwm_request_from_chip (struct pwm_chip * chip ,
414
- unsigned int index ,
415
- const char * label );
416
-
417
413
struct pwm_device * of_pwm_xlate_with_flags (struct pwm_chip * chip ,
418
414
const struct of_phandle_args * args );
419
415
struct pwm_device * of_pwm_single_xlate (struct pwm_chip * chip ,
@@ -508,14 +504,6 @@ static inline int devm_pwmchip_add(struct device *dev, struct pwm_chip *chip)
508
504
return - EINVAL ;
509
505
}
510
506
511
- static inline struct pwm_device * pwm_request_from_chip (struct pwm_chip * chip ,
512
- unsigned int index ,
513
- const char * label )
514
- {
515
- might_sleep ();
516
- return ERR_PTR (- ENODEV );
517
- }
518
-
519
507
static inline struct pwm_device * pwm_get (struct device * dev ,
520
508
const char * consumer )
521
509
{
You can’t perform that action at this time.
0 commit comments