Re: [RFC][PATCH] perf: sysfs type id

From: Kay Sievers
Date: Tue Nov 09 2010 - 21:11:22 EST


On Wed, Nov 10, 2010 at 02:45, Michael Ellerman <michael@xxxxxxxxxxxxxx> wrote:
> On Wed, 2010-11-10 at 02:19 +0100, Kay Sievers wrote:

>> >> The pseudo-convenience device_register/device_unregister should also
>> >> not be used.
>> >
>> > Why are they in the tree if they shouldn't be used?
>>
>> Because they save one line and do improper error handling.
>> They should all be converted to device_init+device_add/device_del/device_put.
>
> I don't see device_init(), or do you mean device_initialize()? It
> returns void?

http://lkml.org/lkml/2010/9/22/56

Kay
--
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/