Skip to content

Commit 78049a0

Browse files
Wolfram Sanggregkh
authored andcommitted
drivers/misc: don't use devm_pinctrl_get_select_default() in probe
Since commit ab78029 (drivers/pinctrl: grab default handles from device core), we can rely on device core for setting the default pins. Compile tested only. Acked-by: Linus Walleij <linus.walleij@linaro.org> (personally at LCE13) Signed-off-by: Wolfram Sang <wsa@the-dreams.de> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 8b613bb commit 78049a0

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

‎drivers/misc/atmel-ssc.c‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include <linux/module.h>
2020

2121
#include <linux/of.h>
22-
#include <linux/pinctrl/consumer.h>
2322

2423
/* Serialize access to ssc_list and user count */
2524
static DEFINE_SPINLOCK(user_lock);
@@ -132,13 +131,6 @@ static int ssc_probe(struct platform_device *pdev)
132131
struct resource *regs;
133132
struct ssc_device *ssc;
134133
const struct atmel_ssc_platform_data *plat_dat;
135-
struct pinctrl *pinctrl;
136-
137-
pinctrl = devm_pinctrl_get_select_default(&pdev->dev);
138-
if (IS_ERR(pinctrl)) {
139-
dev_err(&pdev->dev, "Failed to request pinctrl\n");
140-
return PTR_ERR(pinctrl);
141-
}
142134

143135
ssc = devm_kzalloc(&pdev->dev, sizeof(struct ssc_device), GFP_KERNEL);
144136
if (!ssc) {

0 commit comments

Comments
 (0)