From 0d25376c326220687a2dccb5c40b785a7499326c Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Wed, 25 Jun 2014 10:08:47 -0700 Subject: [PATCH] leds: lm355x: fix attribute-creation race Use the attribute groups of the led-class to create the indicator-LED attributes during probe in order to avoid racing with userspace. Note that the comment about the pattern attribute only being for LM3554 was incorrect and did not match the code (the original leds-lm3556 driver had the attribute before LM3554 support was added). Signed-off-by: Johan Hovold Signed-off-by: Bryan Wu --- Reading git-format-patch failed