Changed CONFIG_ARCH to CONFIG_DEV.
added guard.