Blackfin: cplbinfo: drop d_path() hacks
authorMike Frysinger <vapier@gentoo.org>
Mon, 21 Sep 2009 16:12:05 +0000 (16:12 +0000)
committerMike Frysinger <vapier@gentoo.org>
Wed, 7 Oct 2009 08:48:04 +0000 (04:48 -0400)
commit48dee09325fbc5ffb9d4a780e765538c0e9cc794
tree64df9f4bb4b1bcf74aec8de75c54aa2e185981a4
parentd586e833f970dfb4768e6c872b621f4cfc555267
Blackfin: cplbinfo: drop d_path() hacks

The cplbinfo was using d_path() to figure out which cpu/cplb was being
parsed.  As Al pointed out, this isn't exactly reliable as it assumes the
static VFS path to be unchanged, and it's just poor form.  So use the
proc_create_data() to properly (and internally) pass the exact cpu/cplb
requested to the parser function.

Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/kernel/cplbinfo.c