From: lists@fuchsschwanzdomain.de (Sven Geggus) Date: Sat, 30 Mar 2013 18:41:06 +0000 (UTC) Subject: How is gpio_keys.ko supposed to work? References: <20130328161358.GA20655@geggus.net> Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Jerry Zhang wrote: > The entry will only be created after the "Driver" probes the "Device" > successfully. In your case, you need to be sure the corresponding > platform_device is claimed in your board setup code. What does claiming the device actually mean? Do I really need to hardcode the GPIOs where buttons are connected at compile time? This would not be a very good idea for a User configurable board like Raspberry Pi. I actually thought that I could configure the gpios where buttons are connected at runtime using sysfs, depending on the actual hardware setup in use. Sven -- "Das Einzige wovor wir Angst haben m?ssen ist die Angst selbst" (Franklin D. Roosevelt) /me is giggls at ircnet, http://sven.gegg.us/ on the Web