From: Ian Abbott Date: Thu, 1 Nov 2012 16:28:30 +0000 (+0000) Subject: staging: comedi: gsc_hpdi: remove board(dev) function X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~84^2~690 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6526cd1ad04adc2ca54d34d1f003b8bb5318d337;p=pandora-kernel.git staging: comedi: gsc_hpdi: remove board(dev) function The `board(dev)` function just casts `dev->board_ptr` to a pointer to the private data type `struct hpdi_private` and returns it. It's only called from one function: `hpdi_auto_attach()`. Remove `board()` and use a local variable to point to the `struct hpdi_private` data structure. Signed-off-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed