|
@@ -263,6 +263,7 @@ static int pwm_export_child(struct device *parent, struct pwm_device *pwm)
|
|
export->pwm = pwm;
|
|
export->pwm = pwm;
|
|
mutex_init(&export->lock);
|
|
mutex_init(&export->lock);
|
|
|
|
|
|
|
|
+ export->child.class = parent->class;
|
|
export->child.release = pwm_export_release;
|
|
export->child.release = pwm_export_release;
|
|
export->child.parent = parent;
|
|
export->child.parent = parent;
|
|
export->child.devt = MKDEV(0, 0);
|
|
export->child.devt = MKDEV(0, 0);
|