]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hfi1: Check device id early during init
authorTadeusz Struk <tadeusz.struk@intel.com>
Tue, 21 Mar 2017 00:25:29 +0000 (17:25 -0700)
committerDoug Ledford <dledford@redhat.com>
Wed, 5 Apr 2017 18:45:09 +0000 (14:45 -0400)
commit66ab12d057b2f323b2d1f54b1e8024b40c66857f
tree220243f80b329c9a83b7f57b87da2560b64805e8
parent637186f6f2a7f6f06e236b2efee518bf82faad77
IB/hfi1: Check device id early during init

If there is a wrong device passed to the driver it should fail early,
without trying to initialize the device only to find out that it has
an invalid device later during the init.

Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/init.c