File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 17
17
*
18
18
*/
19
19
20
+ #include <linux/property.h>
20
21
#include <linux/gpio/machine.h>
21
22
#include <linux/platform_device.h>
22
- #include <linux/rfkill-gpio.h>
23
23
24
24
#include "board.h"
25
25
26
- static struct rfkill_gpio_platform_data wifi_rfkill_platform_data = {
27
- .name = "wifi_rfkill" ,
28
- .type = RFKILL_TYPE_WLAN ,
26
+ static struct property_entry __initdata wifi_rfkill_prop [] = {
27
+ PROPERTY_ENTRY_STRING ("name" , "wifi_rfkill" ),
28
+ PROPERTY_ENTRY_STRING ("type" , "wlan" ),
29
+ { },
30
+ };
31
+
32
+ static struct property_set __initdata wifi_rfkill_pset = {
33
+ .properties = wifi_rfkill_prop ,
29
34
};
30
35
31
36
static struct platform_device wifi_rfkill_device = {
32
37
.name = "rfkill_gpio" ,
33
38
.id = -1 ,
34
- .dev = {
35
- .platform_data = & wifi_rfkill_platform_data ,
36
- },
37
39
};
38
40
39
41
static struct gpiod_lookup_table wifi_gpio_lookup = {
@@ -47,6 +49,7 @@ static struct gpiod_lookup_table wifi_gpio_lookup = {
47
49
48
50
void __init tegra_paz00_wifikill_init (void )
49
51
{
52
+ platform_device_add_properties (& wifi_rfkill_device , & wifi_rfkill_pset );
50
53
gpiod_add_lookup_table (& wifi_gpio_lookup );
51
54
platform_device_register (& wifi_rfkill_device );
52
55
}
You can’t perform that action at this time.
0 commit comments