From: Amit Shah Date: Thu, 2 Sep 2010 12:50:58 +0000 (+0530) Subject: virtio: console: Add a find_port_by_devt() function X-Git-Tag: v2.6.37-rc1~219^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04950cdf071b6e5aa4794c93ad3e3ce8a1c4aa8c;p=pandora-kernel.git virtio: console: Add a find_port_by_devt() function To convert to using cdev as a pointer to avoid kref troubles, we have to use a different method to get to a port from an inode than the current container_of method. Add find_port_by_devt() that looks up all portdevs and ports with those portdevs to find the right port. Signed-off-by: Amit Shah Signed-off-by: Rusty Russell --- Reading git-diff-tree failed