From: H Hartley Sweeten Date: Mon, 14 Jul 2014 19:06:56 +0000 (-0700) Subject: staging: comedi: ni_65xx: remove the need for the subdevice private data X-Git-Tag: cleanup-for-v3.18~125^2~707 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98e9f679dd6ecb73084831bf08f5fadb62b0a079;p=pandora-kernel.git staging: comedi: ni_65xx: remove the need for the subdevice private data There is only one member in the subdevice private data, an unsigned value that is the 'base_port' that the subdevice uses to access the port registers. Just cast the appropriate value into s->private instead of allocating the private data for each subdevice. The casts are a bit of a nusance but it removes the unnecessary allocations. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed