aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/leds/leds-renesas-tpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/leds/leds-renesas-tpu.c')
-rw-r--r--drivers/leds/leds-renesas-tpu.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/leds/leds-renesas-tpu.c b/drivers/leds/leds-renesas-tpu.c
index adebf4931e1e..397b92a282e7 100644
--- a/drivers/leds/leds-renesas-tpu.c
+++ b/drivers/leds/leds-renesas-tpu.c
@@ -65,7 +65,7 @@ static DEFINE_SPINLOCK(r_tpu_lock);
65 65
66static inline u16 r_tpu_read(struct r_tpu_priv *p, int reg_nr) 66static inline u16 r_tpu_read(struct r_tpu_priv *p, int reg_nr)
67{ 67{
68 struct led_renesas_tpu_config *cfg = p->pdev->dev.platform_data; 68 struct led_renesas_tpu_config *cfg = dev_get_platdata(&p->pdev->dev);
69 void __iomem *base = p->mapbase; 69 void __iomem *base = p->mapbase;
70 unsigned long offs = reg_nr << 2; 70 unsigned long offs = reg_nr << 2;
71 71
@@ -77,7 +77,7 @@ static inline u16 r_tpu_read(struct r_tpu_priv *p, int reg_nr)
77 77
78static inline void r_tpu_write(struct r_tpu_priv *p, int reg_nr, u16 value) 78static inline void r_tpu_write(struct r_tpu_priv *p, int reg_nr, u16 value)
79{ 79{
80 struct led_renesas_tpu_config *cfg = p->pdev->dev.platform_data; 80 struct led_renesas_tpu_config *cfg = dev_get_platdata(&p->pdev->dev);
81 void __iomem *base = p->mapbase; 81 void __iomem *base = p->mapbase;
82 unsigned long offs = reg_nr << 2; 82 unsigned long offs = reg_nr << 2;
83 83
@@ -91,7 +91,7 @@ static inline void r_tpu_write(struct r_tpu_priv *p, int reg_nr, u16 value)
91 91
92static void r_tpu_start_stop_ch(struct r_tpu_priv *p, int start) 92static void r_tpu_start_stop_ch(struct r_tpu_priv *p, int start)
93{ 93{
94 struct led_renesas_tpu_config *cfg = p->pdev->dev.platform_data; 94 struct led_renesas_tpu_config *cfg = dev_get_platdata(&p->pdev->dev);
95 unsigned long flags; 95 unsigned long flags;
96 u16 value; 96 u16 value;
97 97
@@ -110,7 +110,7 @@ static void r_tpu_start_stop_ch(struct r_tpu_priv *p, int start)
110 110
111static int r_tpu_enable(struct r_tpu_priv *p, enum led_brightness brightness) 111static int r_tpu_enable(struct r_tpu_priv *p, enum led_brightness brightness)
112{ 112{
113 struct led_renesas_tpu_config *cfg = p->pdev->dev.platform_data; 113 struct led_renesas_tpu_config *cfg = dev_get_platdata(&p->pdev->dev);
114 int prescaler[] = { 1, 4, 16, 64 }; 114 int prescaler[] = { 1, 4, 16, 64 };
115 int k, ret; 115 int k, ret;
116 unsigned long rate, tmp; 116 unsigned long rate, tmp;
@@ -190,7 +190,7 @@ static void r_tpu_disable(struct r_tpu_priv *p)
190static void r_tpu_set_pin(struct r_tpu_priv *p, enum r_tpu_pin new_state, 190static void r_tpu_set_pin(struct r_tpu_priv *p, enum r_tpu_pin new_state,
191 enum led_brightness brightness) 191 enum led_brightness brightness)
192{ 192{
193 struct led_renesas_tpu_config *cfg = p->pdev->dev.platform_data; 193 struct led_renesas_tpu_config *cfg = dev_get_platdata(&p->pdev->dev);
194 194
195 if (p->pin_state == new_state) { 195 if (p->pin_state == new_state) {
196 if (p->pin_state == R_TPU_PIN_GPIO) 196 if (p->pin_state == R_TPU_PIN_GPIO)
@@ -241,7 +241,7 @@ static void r_tpu_set_brightness(struct led_classdev *ldev,
241 241
242static int r_tpu_probe(struct platform_device *pdev) 242static int r_tpu_probe(struct platform_device *pdev)
243{ 243{
244 struct led_renesas_tpu_config *cfg = pdev->dev.platform_data; 244 struct led_renesas_tpu_config *cfg = dev_get_platdata(&pdev->dev);
245 struct r_tpu_priv *p; 245 struct r_tpu_priv *p;
246 struct resource *res; 246 struct resource *res;
247 int ret; 247 int ret;