OpenCloudOS-Kernel/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
..
Kconfig platform/chrome: Add Chrome OS keyboard backlight LEDs support 2016-05-11 11:55:47 -07:00
Makefile platform/chrome: Add Chrome OS keyboard backlight LEDs support 2016-05-11 11:55:47 -07:00
chromeos_laptop.c Revert "platform/chrome: chromeos_laptop: Add Leon Touch" 2016-05-28 08:47:48 -07:00
chromeos_pstore.c platform/chrome: pstore: Move to larger record size. 2016-05-11 11:55:47 -07:00
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 mfd: cros_ec: Support multiple EC in a system 2015-06-15 13:18:23 +01:00
cros_ec_lightbar.c platform/chrome: cros_ec_lightbar - use name instead of ID to hide lightbar attributes 2016-05-11 11:55:47 -07:00
cros_ec_lpc.c platform/chrome: cros_ec_lpc - Add support for Google Pixel 2 2015-10-07 14:34:26 -07:00
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 mfd: cros_ec: Support multiple EC in a system 2015-06-15 13:18:23 +01:00
cros_ec_vbc.c platform/chrome: Support reading/writing the vboot context 2015-10-07 15:05:53 -07:00
cros_kbd_led_backlight.c platform/chrome: Add Chrome OS keyboard backlight LEDs support 2016-05-11 11:55:47 -07:00