I understand the conclusions above, but here is my clean solution instead of the "quick&ugly" to read TP temp of this SoC...
You can compile it as easy as "gcc sunxi_tp_temp.c -o sunxi_tp_temp"
Main program is really simple, further explanation is not required I think...
In addition, You can use it as template to explore the whole world of A20 register map, not only this temperature value! But beware, its a really dangerous area! If You don't understand what and where to write, then use only the read function first! You can easily freeze Your BPi, furthermore You can cause filesystem corruption or hardware damage if You accidentaly modify wrong registers!
Its not a kernel module, but the motto is the same as in the programmer's Bible called "The Linux Kernel Module Programming Guide" :
"You know C, you've written a few normal programs to run as processes, and now you want to get to where the real action is, to where a single wild pointer can wipe out your file system and a core dump means a reboot."