linux/drivers/platform/chrome
Logan Gunthorpe 1c1d152cc5 platform/chrome: cros_ec_dev - utilize new cdev_device_add helper function
Replace the open coded registration of the cdev and dev with the
new device_add_cdev() helper. The helper replaces a common pattern by
taking the proper reference against the parent device and adding both
the cdev and the device.

At the same time we cleanup the error path through device_probe
function: we use put_device instead of kfree directly as recommended
by the device_initialize documentation.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-21 06:44:33 +01:00
..
chromeos_laptop.c
chromeos_pstore.c
cros_ec_dev.c platform/chrome: cros_ec_dev - utilize new cdev_device_add helper function 2017-03-21 06:44:33 +01:00
cros_ec_dev.h
cros_ec_lightbar.c
cros_ec_lpc.c
cros_ec_proto.c mfd: cros_ec: Prevent data transfer while device is suspended 2017-02-13 09:29:42 +00:00
cros_ec_sysfs.c
cros_ec_vbc.c
cros_kbd_led_backlight.c
Kconfig
Makefile