Apply patch from Jonathan Herbst re change from create_proc_entry to ptoc_create (in 3.10)

Also removed trailing whitespace from entire file.