Re: [PATCH v4 7/8] hwmon: pwm-fan: Read PWM FAN configuration from device tree
From: Guenter Roeck
Date: Mon Feb 23 2015 - 11:24:39 EST
On Mon, Feb 23, 2015 at 05:13:36PM +0100, Lukasz Majewski wrote:
> Hi Guenter,
[ ... ]
> > If devicetree is not configured, of_property_count_elems_of_size
> > returns -ENOSYS, which is returned, causing the driver to fail
> > loading.
> Has of_property_count_elems_of_size() returns -ENOSYS?
> Maybe something has changed, but in my linux-vanila (3.19-rc4)
> at ./drivers/of/base.c it returns -EINVAL, -ENODATA or number of
> Have I missed something?
Yes, you have. Check include/linux/of.h, line 484, in latest mainline.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/