diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-08-17 13:16:30 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-08-17 13:16:30 -0400 |
| commit | c83917976fad1e66689f2e4f632841ed2b2dbe2b (patch) | |
| tree | e9ca68e0a3322bcca3987d7280fb2bc920ac96d1 /drivers | |
| parent | d7d45fedf92b351500af99d03004e59531a3d070 (diff) | |
| parent | 7b7e995d69199b555181ac057c47b017c510a129 (diff) | |
Merge tag 'driver-core-3.6-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
Pull driver core fixes from Greg Kroah-Hartman:
"Here are two tiny patches, one fixing a dynamic debug problem that the
printk rework turned up, and the other one fixing an extcon problem
that people reported.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>"
* tag 'driver-core-3.6-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
extcon: extcon_gpio: Replace gpio_request_one by devm_gpio_request_one
drivers-core: make structured logging play nice with dynamic-debug
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/base/core.c | 9 | ||||
| -rw-r--r-- | drivers/extcon/extcon_gpio.c | 3 |
2 files changed, 9 insertions, 3 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c index f338037a4f3d..cdd01c52c629 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c | |||
| @@ -1865,6 +1865,7 @@ int __dev_printk(const char *level, const struct device *dev, | |||
| 1865 | struct va_format *vaf) | 1865 | struct va_format *vaf) |
| 1866 | { | 1866 | { |
| 1867 | char dict[128]; | 1867 | char dict[128]; |
| 1868 | const char *level_extra = ""; | ||
| 1868 | size_t dictlen = 0; | 1869 | size_t dictlen = 0; |
| 1869 | const char *subsys; | 1870 | const char *subsys; |
| 1870 | 1871 | ||
| @@ -1911,10 +1912,14 @@ int __dev_printk(const char *level, const struct device *dev, | |||
| 1911 | "DEVICE=+%s:%s", subsys, dev_name(dev)); | 1912 | "DEVICE=+%s:%s", subsys, dev_name(dev)); |
| 1912 | } | 1913 | } |
| 1913 | skip: | 1914 | skip: |
| 1915 | if (level[3]) | ||
| 1916 | level_extra = &level[3]; /* skip past "<L>" */ | ||
| 1917 | |||
| 1914 | return printk_emit(0, level[1] - '0', | 1918 | return printk_emit(0, level[1] - '0', |
| 1915 | dictlen ? dict : NULL, dictlen, | 1919 | dictlen ? dict : NULL, dictlen, |
| 1916 | "%s %s: %pV", | 1920 | "%s %s: %s%pV", |
| 1917 | dev_driver_string(dev), dev_name(dev), vaf); | 1921 | dev_driver_string(dev), dev_name(dev), |
| 1922 | level_extra, vaf); | ||
| 1918 | } | 1923 | } |
| 1919 | EXPORT_SYMBOL(__dev_printk); | 1924 | EXPORT_SYMBOL(__dev_printk); |
| 1920 | 1925 | ||
diff --git a/drivers/extcon/extcon_gpio.c b/drivers/extcon/extcon_gpio.c index fe3db45fa83c..3cc152e690b0 100644 --- a/drivers/extcon/extcon_gpio.c +++ b/drivers/extcon/extcon_gpio.c | |||
| @@ -107,7 +107,8 @@ static int __devinit gpio_extcon_probe(struct platform_device *pdev) | |||
| 107 | if (ret < 0) | 107 | if (ret < 0) |
| 108 | return ret; | 108 | return ret; |
| 109 | 109 | ||
| 110 | ret = gpio_request_one(extcon_data->gpio, GPIOF_DIR_IN, pdev->name); | 110 | ret = devm_gpio_request_one(&pdev->dev, extcon_data->gpio, GPIOF_DIR_IN, |
| 111 | pdev->name); | ||
| 111 | if (ret < 0) | 112 | if (ret < 0) |
| 112 | goto err; | 113 | goto err; |
| 113 | 114 | ||
