Re: [PATCH 1/2] tee: replace cdev_add + device_add with cdev_device_add

2020-09-18 Thread Jens Wiklander
On Tue, Sep 01, 2020 at 11:33:34AM +0100, Sudeep Holla wrote: > Commit 233ed09d7fda ("chardev: add helper function to register char devs > with a struct device") added a helper function 'cdev_device_add'. > > Make use of cdev_device_add in tee_device_register to replace cdev_add > and device_add.

[PATCH 1/2] tee: replace cdev_add + device_add with cdev_device_add

2020-09-01 Thread Sudeep Holla
Commit 233ed09d7fda ("chardev: add helper function to register char devs with a struct device") added a helper function 'cdev_device_add'. Make use of cdev_device_add in tee_device_register to replace cdev_add and device_add. Since cdev_device_add takes care of setting the kobj->parent, drop expli