From: H Hartley Sweeten Date: Mon, 24 Sep 2012 20:23:22 +0000 (-0700) Subject: staging: comedi: s626: cleanup ioremap() X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~75^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f6c7bf992bc6f1bbf38b08e9b3c8a21865888f2;p=pandora-kernel.git staging: comedi: s626: cleanup ioremap() The local variable 'resourceStart' is only used in the ioremap() to hold the PCI bar 0 base address. Just use the pci_resource_start() directly in the ioremap(). Also, instead of assuming the resource size for the ioremap, use pci_resource_len() to get the actual size. Remove the kernel noise when the ioremap fails and change the error code from -ENODEV to -ENOMEM. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed