[ldv-project] mfd: syscon: syscon_node_to_regmap() and device_node refcounting

Alexey Khoroshilov khoroshilov at ispras.ru
Sun Oct 14 00:02:39 MSK 2018


Hello,

Could you please clarify why it is safe to store device_node pointer
in of_syscon_register()? Who is responsible to make sure that 
it is not disappear?

static struct syscon *of_syscon_register(struct device_node *np)
{
...
	syscon->np = np;
}


--
Thank you,
Alexey Khoroshilov
Linux Verification Center, ISPRAS
web: http://linuxtesting.org




More information about the ldv-project mailing list