Commit a71a6d96 authored by Wei Yongjun's avatar Wei Yongjun Committed by Greg Kroah-Hartman
Browse files

staging: fsl-mc: convert to use ATTRIBUTE_GROUPS macro



Use ATTRIBUTE_GROUPS macro to reduce the number of lines of code.

Generated by Coccinelle semantic patch.

Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent be1edb85
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -137,14 +137,8 @@ static struct attribute *fsl_mc_dev_attrs[] = {
	NULL,
};

static const struct attribute_group fsl_mc_dev_group = {
	.attrs = fsl_mc_dev_attrs,
};
ATTRIBUTE_GROUPS(fsl_mc_dev);

static const struct attribute_group *fsl_mc_dev_groups[] = {
	&fsl_mc_dev_group,
	NULL,
};

struct bus_type fsl_mc_bus_type = {
	.name = "fsl-mc",