Skip to content

Commit 06c406d

Browse files
Jason KridnerRobertCNelson
Jason Kridner
authored andcommitted
pwm.c: do not unexport channels
The kernel complains that the PWM is not stopped ahead of being unexported. This may or may not be the case, but in any case, this helps avoid the kernel issue. Fixes beagleboard#154
1 parent 3d80f62 commit 06c406d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

library/src/io/pwm.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ static int __export_channels(int ss)
144144
*/
145145
static int __unexport_channels(int ss)
146146
{
147+
/* At a minimum, the channels need to be disabled prior to being unexported */
148+
return 0;
149+
147150
int unexport_fd=0;
148151
char buf[MAXBUF];
149152
int len;

0 commit comments

Comments
 (0)