Fix typo

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Create attribute groups in one go

This simplifies error handling a bit and reduces code size.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>