lkml.org 
[lkml]   [2013]   [Jan]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectquestion about drivers/i2c/busses/i2c-davinci.c
The function davinci_i2c_remove in drivers/i2c/busses/i2c-davinci.c 
contains the following code:

put_device(&pdev->dev);

clk_disable_unprepare(dev->clk);
clk_put(dev->clk);
dev->clk = NULL;

davinci_i2c_write_reg(dev, DAVINCI_I2C_MDR_REG, 0);
free_irq(dev->irq, dev);

Is there any danger in putting free_irq(dev->irq, dev); after
put_device(&pdev->dev);, because the interrupt handler i2c_davinci_isr can
eg refer to dev->dev.

thanks,
julia


\
 
 \ /
  Last update: 2013-01-06 21:41    [W:0.068 / U:4.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site