++/* gpio buttons */
++static struct gpio_buttons_platform_data lq_gpio_buttons_platform_data;
++
++static struct platform_device lq_gpio_buttons_platform_device =
++{
++ .name = "gpio-buttons",
++ .id = 0,
++ .dev = {
++ .platform_data = (void *) &lq_gpio_buttons_platform_data,
++ },
++};
++
++void __init
++lq_register_gpio_buttons(struct gpio_button *buttons, int cnt)
++{
++ lq_gpio_buttons_platform_data.buttons = buttons;
++ lq_gpio_buttons_platform_data.nbuttons = cnt;
++ platform_device_register(&lq_gpio_buttons_platform_device);
++}
++