diff options
author | Vaibhav Hiremath <vaibhav.hiremath@linaro.org> | 2015-07-14 13:06:45 +0530 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2015-08-10 08:37:31 +0200 |
commit | 51fcce86a70f6f63d733619afc425821118838dc (patch) | |
tree | da72f1d68d1cc484ebba3e10653461bd3dc61ac5 /net/sysctl_net.c | |
parent | 3a2dc1677b60af250bea85d470ef5151c70a1264 (diff) |
i2c: pxa: Use devm_ variants in probe function
This patch cleans up i2c_pxa_probe() function,
- Use devm_ variants wherever
This will clean both probe exit and i2c_pxa_remove() functions
- Check platform resource before parsing any other data from DT/platform
- Use dev_err on failure from i2c_add_numbered_adapter()
- Use pr_info instead of printk for KERN_INFO
Signed-off-by: Vaibhav Hiremath <vaibhav.hiremath@linaro.org>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
[wsa: removed unneeded error prinout after devm_ioremap_resource]
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'net/sysctl_net.c')
0 files changed, 0 insertions, 0 deletions