diff options
Diffstat (limited to 'drivers/pwm/pwm-mxs.c')
-rw-r--r-- | drivers/pwm/pwm-mxs.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/pwm/pwm-mxs.c b/drivers/pwm/pwm-mxs.c index 3febdddf71f9..2c77b81da7c4 100644 --- a/drivers/pwm/pwm-mxs.c +++ b/drivers/pwm/pwm-mxs.c | |||
@@ -16,7 +16,6 @@ | |||
16 | #include <linux/module.h> | 16 | #include <linux/module.h> |
17 | #include <linux/of.h> | 17 | #include <linux/of.h> |
18 | #include <linux/of_address.h> | 18 | #include <linux/of_address.h> |
19 | #include <linux/pinctrl/consumer.h> | ||
20 | #include <linux/platform_device.h> | 19 | #include <linux/platform_device.h> |
21 | #include <linux/pwm.h> | 20 | #include <linux/pwm.h> |
22 | #include <linux/slab.h> | 21 | #include <linux/slab.h> |
@@ -130,7 +129,6 @@ static int mxs_pwm_probe(struct platform_device *pdev) | |||
130 | struct device_node *np = pdev->dev.of_node; | 129 | struct device_node *np = pdev->dev.of_node; |
131 | struct mxs_pwm_chip *mxs; | 130 | struct mxs_pwm_chip *mxs; |
132 | struct resource *res; | 131 | struct resource *res; |
133 | struct pinctrl *pinctrl; | ||
134 | int ret; | 132 | int ret; |
135 | 133 | ||
136 | mxs = devm_kzalloc(&pdev->dev, sizeof(*mxs), GFP_KERNEL); | 134 | mxs = devm_kzalloc(&pdev->dev, sizeof(*mxs), GFP_KERNEL); |
@@ -142,10 +140,6 @@ static int mxs_pwm_probe(struct platform_device *pdev) | |||
142 | if (IS_ERR(mxs->base)) | 140 | if (IS_ERR(mxs->base)) |
143 | return PTR_ERR(mxs->base); | 141 | return PTR_ERR(mxs->base); |
144 | 142 | ||
145 | pinctrl = devm_pinctrl_get_select_default(&pdev->dev); | ||
146 | if (IS_ERR(pinctrl)) | ||
147 | return PTR_ERR(pinctrl); | ||
148 | |||
149 | mxs->clk = devm_clk_get(&pdev->dev, NULL); | 143 | mxs->clk = devm_clk_get(&pdev->dev, NULL); |
150 | if (IS_ERR(mxs->clk)) | 144 | if (IS_ERR(mxs->clk)) |
151 | return PTR_ERR(mxs->clk); | 145 | return PTR_ERR(mxs->clk); |
@@ -188,6 +182,7 @@ MODULE_DEVICE_TABLE(of, mxs_pwm_dt_ids); | |||
188 | static struct platform_driver mxs_pwm_driver = { | 182 | static struct platform_driver mxs_pwm_driver = { |
189 | .driver = { | 183 | .driver = { |
190 | .name = "mxs-pwm", | 184 | .name = "mxs-pwm", |
185 | .owner = THIS_MODULE, | ||
191 | .of_match_table = of_match_ptr(mxs_pwm_dt_ids), | 186 | .of_match_table = of_match_ptr(mxs_pwm_dt_ids), |
192 | }, | 187 | }, |
193 | .probe = mxs_pwm_probe, | 188 | .probe = mxs_pwm_probe, |