[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.02.1301062057260.2029@localhost6.localdomain6>
Date: Sun, 6 Jan 2013 21:00:59 +0100 (CET)
From: Julia Lawall <julia.lawall@...6.fr>
To: nsekhar@...com, khilman@...com, w.sang@...gutronix.de,
ben-linux@...ff.org, grant.likely@...retlab.ca,
rob.herring@...xeda.com,
davinci-linux-open-source@...ux.davincidsp.com,
linux-i2c@...r.kernel.org, linux-kernel@...r.kernel.org,
devicetree-discuss@...ts.ozlabs.org
Subject: question 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists