From: Jason Gunthorpe Date: Tue, 26 Nov 2013 20:30:40 +0000 (-0700) Subject: tpm: Pull everything related to /dev/tpmX into tpm-dev.c X-Git-Tag: v3.14-rc1~147^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afdba32e2a9ea729a9f9f280dbf6c718773c7ded;p=pandora-kernel.git tpm: Pull everything related to /dev/tpmX into tpm-dev.c CLASS-dev.c is a common idiom for Linux subsystems This pulls all the code related to the miscdev into tpm-dev.c and makes it static. The identical file_operation structs in the drivers are purged and the tpm common code unconditionally creates the miscdev. Signed-off-by: Jason Gunthorpe Reviewed-by: Joel Schopp Reviewed-by: Ashley Lai [phuewe: tpm_dev_release is now used only in this file, thus the EXPORT_SYMBOL can be dropped and the function be marked as static. It has no other in-kernel users] Signed-off-by: Peter Huewe --- Reading git-diff-tree failed