/* * Don't use _get_and_ioremap_resource() here, since that will invoke * prints of "invalid resource" which will simply add confusion.
*/
res = platform_get_resource(pdev, IORESOURCE_MEM, index); if (res) {
regs = devm_ioremap_resource(dev, res); if (IS_ERR(regs)) return ERR_CAST(regs); return devm_regmap_init_mmio(dev, regs, config);
}
/* * Fall back to using REG and getting the resource from the parent * device, which is possible in an MFD configuration
*/ if (dev->parent) {
res = platform_get_resource(pdev, IORESOURCE_REG, index); if (!res) return NULL;
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.