Accessing rpmsg_device in sysfs attribute functions

Martin Kaiser lists at
Tue Mar 24 05:49:46 EDT 2020

Hi Greg,

Thus wrote Greg KH (greg at

> That is because you have created a driver attribute, not a device
> attribute.  Create device attributes and you should be fine, they bind
> to the device your driver is passed.

could you point me to an example in the kernel tree where this is done
correctly for a platform device?

I had a look at

but I couldn't figure out how to create device attributes in a simple
platform driver that binds to a platform device.

Thanks a lot for your help,


More information about the Kernelnewbies mailing list