[POWERPC] scanlog_init cleanup and minor fixes
authorNathan Lynch <ntl@pobox.com>
Sun, 23 Mar 2008 22:51:45 +0000 (09:51 +1100)
committerPaul Mackerras <paulus@samba.org>
Tue, 25 Mar 2008 21:44:07 +0000 (08:44 +1100)
commitf61fb8a52cdf8b9b6a6badde84aefe58cb35d315
treeb41a13d09c471b97c77d686fb600435a7906145e
parent9356d90effa39c83c8fdba2a14cecec79959d4d0
[POWERPC] scanlog_init cleanup and minor fixes

scanlog_init() could use some love.

* properly return -ENODEV if this system doesn't support scan-log-dump
* don't printk if scan-log-dump not present; only older systems have it
* convert from create_proc_entry() to preferred proc_create()
* allocate zeroed data buffer
* fix potential memory leak of ent->data on failed create_proc_entry()
* simplify control flow

Signed-off-by: Nathan Lynch <ntl@pobox.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/pseries/scanlog.c