Re: [RFC] sysfs support for mtd

Siddharth Choudhuri
2007-07-20T00:24:19Z

> > o I am not sure where an additional link from bus
> to
> > mtd should be added in the sysfs hierarchy. Should
> it
> > be /sys/bus/platform/devices ->
> ../../../devices/mtd
> > -OR-
> > /sys/bus/platform/ -> ../../devices/mtd
> No idea, but I've always thought sysfs core
> automatically puts these
> links. All you have to do is to define your bus
> object which is
> "platform" bus, and the stuff will appear. Although
> I am not sure.
>
Thanks for the suggestions. I added a link from
/sys/bus/platform/devices/mtd -> /sys/devices/mtd.
Link can be created in sysfs using a call to
sysfs_create_link() function.

I will send a patch after coding the suggestions and
running a few more tests.

-sid

____________________________________________________________________________________
Need a vacation? Get great deals
to amazing places on Yahoo! Travel.