public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* Question2: Determine subarch type
@ 2012-12-09  6:51 Alexander Shiyan
  2012-12-09  9:51 ` Russell King - ARM Linux
  0 siblings, 1 reply; 6+ messages in thread
From: Alexander Shiyan @ 2012-12-09  6:51 UTC (permalink / raw)
  To: linux-arm-kernel

Hello.

How can we determine the sub-architecture type from the driver code?
For example, we are building a multi-platform kernel for subarch A and B.
One of the drivers should be used for subarch A only, and can not be used for
subarch B. So, we need to avoid load this driver for other sub-architectures.
Of course, we can check all machines in the subarch with machine_is_xx() macro,
but I think that this is not the best way to do it.
Do we have another way to do this?

-- 
Alexander Shiyan <shc_work@mail.ru>

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-12-09 14:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-09  6:51 Question2: Determine subarch type Alexander Shiyan
2012-12-09  9:51 ` Russell King - ARM Linux
2012-12-09  9:55   ` Alexander Shiyan
2012-12-09 10:13     ` Russell King - ARM Linux
2012-12-09 10:24       ` Alexander Shiyan
2012-12-09 14:40         ` Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox