]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
staging: comedi: rti800: cleanup dev->board_name usage
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 9 Apr 2013 01:15:46 +0000 (18:15 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Apr 2013 23:29:03 +0000 (16:29 -0700)
commit7b2234df5e2ec3fbb206fc4442099faf5859a177
treedb9d582cfc1a8d9f3c9e3629c7f14d2ccd8126fa
parent62d4d5613d8b4c35555ef338ac27c3df1e36e4b4
staging: comedi: rti800: cleanup dev->board_name usage

The comedi core initializes the dev->board_name before calling the
driver (*attach) function. There is not reason to reinitialize it
in the driver.

Use the dev->board_name when doing the request_{region,irq}() instead
of the open-coded string.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/rti800.c