switchtec: Use new cdev_device_add() helper function
authorLogan Gunthorpe <logang@deltatee.com>
Mon, 22 May 2017 21:52:24 +0000 (16:52 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 22 May 2017 21:52:24 +0000 (16:52 -0500)
commite40cf640b8f632091a30ef0b030c83546f07c902
treefdad52aeb6845c646f1824c2e2ba859be9557afc
parentc849e55178f559c4bbed43efb113cb7602aade89
switchtec: Use new cdev_device_add() helper function

Convert from "cdev_add() + device_add()" to cdev_device_add(), and from
"device_del() + cdev_del()" to cdev_device_del().

[bhelgaas: changelog]
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/switch/switchtec.c