greybus: loopback: fix layer violation
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 11 Nov 2015 09:07:02 +0000 (10:07 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 11 Nov 2015 17:18:28 +0000 (09:18 -0800)
commit0d1d6ee209e1129c584c2b00a48a33ff1fb7312c
tree332aa635fb7001bcb7ea18a13a87fd6428051c71
parentc9e9de26f912bc0e5bca6a5168e7d5d427d2b2ee
greybus: loopback: fix layer violation

A bundle (protocol) driver has no business creating sysfs entries for an
ancestor device.

Move the sysfs entries to the bundle device for now.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/loopback.c