Re: [PATCH 1/5] mx2_camera: change to register and probe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 4 Aug 2010, Michael Grzeschik wrote:

> No, sorry but this doesn't solve the problem. I tested it and get an
> "unable to get regulator: -19" when i hit on that. The problem is the
> device init order. The pcm970_baseboard_init_late comes first and
> then the regulator. So i think we should keep that patch.

Ok, you could register a bus-notifier on the soc-camera bus 
(http://thread.gmane.org/gmane.linux.drivers.video-input-infrastructure/21364/focus=8520), 
watching out for a BUS_NOTIFY_ADD_DEVICE event. I think, that would be a 
more elegant solution, with it we still preserve the ability to clean up 
the probe function. Although, for that, I think, we'd need to make it 
__init instead of __devinit. In any case, I would prefer that solution, 
however, if for some reason you cannot or do not want to do it, I'll take 
this patch.

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux