Skip to content

Commit

Permalink
Removed unused clk struct from pwm_dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Ellis committed Aug 16, 2011
1 parent 5c96282 commit a56e462
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pwm.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ struct pwm_dev {
struct cdev cdev;
struct class *class;
struct semaphore sem;
struct clk *gpt_clk;
struct gpt gpt;
char *user_buff;
};
Expand Down Expand Up @@ -314,7 +313,7 @@ static int pwm_enable_clock(void)
{
char id[16];

if (pwm_dev.gpt_clk)
if (pwm_dev.gpt.clk)
return 0;

sprintf(id, "gpt%d_fck", pwm_dev.gpt.timer_num);
Expand Down

0 comments on commit a56e462

Please sign in to comment.