staticint __init brcmstb_soc_device_early_init(void)
{ struct device_node *sun_top_ctrl; void __iomem *sun_top_ctrl_base; int ret = 0;
/* We could be on a multi-platform kernel, don't make this fatal but * bail out early
*/
sun_top_ctrl = of_find_matching_node(NULL, sun_top_ctrl_match); if (!sun_top_ctrl) return ret;
sun_top_ctrl_base = of_iomap(sun_top_ctrl, 0); if (!sun_top_ctrl_base) {
ret = -ENODEV; goto out;
}
staticint __init brcmstb_soc_device_init(void)
{ struct soc_device_attribute *soc_dev_attr; struct device_node *sun_top_ctrl; struct soc_device *soc_dev; int ret = 0;
/* We could be on a multi-platform kernel, don't make this fatal but * bail out early
*/
sun_top_ctrl = of_find_matching_node(NULL, sun_top_ctrl_match); if (!sun_top_ctrl) return ret;
soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); if (!soc_dev_attr) {
ret = -ENOMEM; goto out;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.