]> git.baikalelectronics.ru Git - kernel.git/commit
[media] move i2c files into drivers/media/i2c
authorMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 24 Aug 2012 22:44:44 +0000 (19:44 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 6 Sep 2012 21:42:54 +0000 (18:42 -0300)
commit314d998f2f308a84137230d69d9601a7c47a75cb
tree6b00329a41cf28fd46ab7b404685ddb63cf07b83
parent6313cf4b3e2d3aedde722fd19181e01f224a6653
[media] move i2c files into drivers/media/i2c

Based on a patch from Sylvester Nawrocki

This fixes regression introduced with commmit 6c0976072a45ca6d1,
"[media] move i2c files into drivers/media/i2c".

The linked order affect what drivers will be initialized first, when
they're built-in at Kernel. While there are macros that allow changing
the init order, like subsys_initcall(), late_initcall() & friends,
when all drivers  linked belong to the same subsystem, it is easier
to change the order at the Makefile.

All I2C modules must be linked before any drivers that actually use it,
in order to ensure proper module initialization order.

Also, the core drivers should be initialized before the drivers that use
them.

This patch reorders the drivers init, in order to fulfill the above
requirements.

Reported-by: Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
Acked-by: Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/Makefile