Serial: allow port drivers to have a default attribute group
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jul 2014 01:19:34 +0000 (01:19 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jul 2014 01:21:21 +0000 (18:21 -0700)
commit266dcff03eed0050b6af11aaf2a61ab837d7ba3f
tree3d11f566fe2c4712808577bdd02d1a83859c9299
parentc8b29f049eb2645dd21e40a6613c09f15c731650
Serial: allow port drivers to have a default attribute group

Some serial drivers (like 8250), want to add sysfs files.  We need to do
so in a race-free way, so allow any port to be able to specify an
attribute group that should be added at device creation time.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Yoshihiro YUNOMAE <yoshihiro.yunomae.ez@hitachi.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_core.c
include/linux/serial_core.h