From: Ian Abbott Date: Tue, 9 Sep 2014 10:26:41 +0000 (+0100) Subject: staging: comedi: ni_atmio: replace comedi_board() calls X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=af169cf1e215e213e8616774fc018547fabbbb26;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: comedi: ni_atmio: replace comedi_board() calls The `comedi_board(dev)` inline function calls just return `dev->board_ptr`. Expand the inline function calls. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/ni_atmio.c b/drivers/staging/comedi/drivers/ni_atmio.c index 2bd9f692a7ae..0c5ff287dcef 100644 --- a/drivers/staging/comedi/drivers/ni_atmio.c +++ b/drivers/staging/comedi/drivers/ni_atmio.c @@ -336,7 +336,7 @@ static int ni_atmio_attach(struct comedi_device *dev, return -EIO; dev->board_ptr = ni_boards + board; - boardtype = comedi_board(dev); + boardtype = dev->board_ptr; dev->board_name = boardtype->name; /* irq stuff */