]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0b4069f54fd3125c0f84a2910228bd41f04b1a6e
treefdad52aeb6845c646f1824c2e2ba859be9557afc
parent20b732bb55dda9adc81fd59fa4f3a6fc3368f045
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