add printk to i2c-proc if no sysctl support in kernel and
return -EPERM. Was mysterious -ENOMEM with no printk.
Also add dependency to Config.in.
Subject:
Problem: i2c-proc w/o sysctl support
Date:
Mon, 18 Feb 2002 16:14:16 +0100
From:
"Sebastian Brandt" <SBrandt@…>
To:
<sensors@…>
Dear Developers,
when I tried to use i2c and lm_sensors, it mysteriously failed for me - of
course, for me only, like usual.
Loading i2c-proc.o resulted in out-of-memory error, with the usual
modprobe/insmod explanation about wrong irqs or io ports. Looking at the
code an debugging, I found out that register_sysctl_table fails. Fittingly,
/proc/sys did not exist. Syctl-support was not compiled into the kernel.
Resume:
If syctl is not supported, i2c-proc.c does not really do anything. Still, it
should either load silently and keep silent or check for CONFIG_SYSCTL=y
when compiling. None of the i2c-modules can live w/o it.
thanks,
Sebastian Brandt