dahdi: Replace create_proc_entry() with proc_create_data()

create_proc_entry() was deprecated and replace with proc_create_data() since
it's open to a race condition where the proc entry is visible before the file
operations have been set for it.

The PDE() macro also is no longer available as of Linux 3.10 and is replaced
with PDE_DATA() to get the data member from a proc entry. This is due to the
fact that 'struct proc_dir_entry' is now private to the proc_fs.

This commit changes the core of DAHDI and also introduces proc_create_data() and
PDE_DATA() for older kernels.

Signed-off-by: Shaun Ruffell <sruffell@digium.com>
Cc: Russ Meyerriecks <rmeyerriecks@digium.com>
Cc: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
Cc: Oron Peled <oron.peled@xorcom.com>
dahdi_dynamic_ethmf: Don't use create_proc_read_entry()

Don't use create_proc_read_entry() as that is deprecated, but rather use
proc_create_data() and seq_file instead.

This is needed to compile against Linux 3.10.

Signed-off-by: Shaun Ruffell <sruffell@digium.com>
Cc: Russ Meyerriecks <rmeyerriecks@digium.com>
Cc: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
Cc: Oron Peled <oron.peled@xorcom.com>
xpp: Don't use create_proc_read_entry()

Don't use create_proc_read_entry() as that is deprecated, but rather use
proc_create_data() and seq_file instead.

This is needed to compile against Linux 3.10.

Signed-off-by: Shaun Ruffell <sruffell@digium.com>
Cc: Russ Meyerriecks <rmeyerriecks@digium.com>
Cc: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
Cc: Oron Peled <oron.peled@xorcom.com>