[lkml]   [2010]   [Aug]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 1/3] drivers: misc: ak8974 / ami305 magnetometer driver
Hi again,

On Mon, Aug 30, 2010 at 12:42 PM, Onkalo Samu <> wrote:
> It would require some more operations since the chip would loose its
> state totally. But yes, it could be done.
Yes. Something like re-programming the context. but it would make sure that
the module draws no power at all.

Also, would it not be correct to include a cancel_work_sync in case of
return here?

+ misc_deregister(&chip->miscdev);
+ ak8974_regulators_off(chip);
+ regulator_bulk_free(ARRAY_SIZE(chip->regs), chip->regs);
+ kfree(chip);
+ return err;


 \ /
  Last update: 2010-08-31 09:15    [W:0.040 / U:23.512 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site