Re: [PATCH] regulator: Fix regulator_summary for deviceless consumers

2017-02-16 Thread Mark Brown
On Tue, Feb 14, 2017 at 05:31:03PM +0200, Leonard Crestez wrote: > root@leonard-imx6:~# cat /sys/kernel/debug/regulator/regulator_summary > Unable to handle kernel NULL pointer dereference at virtual address 015c > pgd = a8bd4000 > [015c] *pgd=a8c15831, *pte=, *ppte= Pleas

[PATCH] regulator: Fix regulator_summary for deviceless consumers

2017-02-14 Thread Leonard Crestez
It is allowed to call regulator_get with a NULL dev argument (_regulator_get explicitly checks for it) but this causes an error later when printing /sys/kernel/debug/regulator_summary. Fix this by explicitly handling "deviceless" consumers in the debugfs code. This fixes errors like this: root@l