I apologize for having to use you to debug this. I'm going to patch
jffs2 here to stop being so chatty. In the meantime, I don't see
anything obvious about the device name and why it is not set. Can you
try this patch?
Sean
Nelson Castillo wrote:
On Thu, Nov 27, 2008 at 11:01 PM, Sean McNeil <[EMAIL PROTECTED]> wrote:
Really shouldn't have any compiler warnings. This includes a check on the
rfkill_register which is marked as must check. Please use this patch instead
for clean compilation.
Sean McNeil wrote:
It turns out the code I used for reference was setting an invalid initial
value for the state. Setting it to the off state should prevent the warning
trace seen by Werner. I didn't see it as my dmesg buffer is flooded with
other messages, so I can't verify it is gone either.
Hello Sean.
Before the patch I would get:
[21474539.315000] SD power -> 2700mV
[21474539.335000] ------------[ cut here ]------------
[21474539.340000] WARNING: at net/rfkill/rfkill.c:752
rfkill_register+0x54/0xd8()
[21474539.345000] rfkill: attempt to register a badly initialized rfkill struct
And after the patch I get:
[21474539.305000] SD power -> 2700mV
[21474539.365000] [EMAIL PROTECTED]@�8BB�x : GTA02 Set PCF50633 LDO4 = 3200
[21474539.375000] neo1973-pm-host neo1973-pm-host.0: starting
I tried twice.
Is it OK?
diff --git a/arch/arm/plat-s3c24xx/neo1973_pm_bt.c b/arch/arm/plat-s3c24xx/neo1973_pm_bt.c
index 708bdc5..4710db7 100644
--- a/arch/arm/plat-s3c24xx/neo1973_pm_bt.c
+++ b/arch/arm/plat-s3c24xx/neo1973_pm_bt.c
@@ -30,6 +30,7 @@
#include <linux/pcf50633.h>
+#define DRVNAME "neo1973-pm-bt"
#define DRVMSG "FIC Neo1973 Bluetooth Power Management"
static ssize_t bt_read(struct device *dev, struct device_attribute *attr,
@@ -182,7 +183,7 @@ static int __init gta01_bt_probe(struct platform_device *pdev)
rfkill = rfkill_allocate(&pdev->dev, RFKILL_TYPE_BLUETOOTH);
- rfkill->name = pdev->name;
+ rfkill->name = DRVNAME;
rfkill->data = pdev;
rfkill->state = RFKILL_STATE_OFF;
rfkill->toggle_radio = bt_rfkill_toggle_radio;
@@ -215,7 +216,7 @@ static struct platform_driver gta01_bt_driver = {
.suspend = gta01_bt_suspend,
.resume = gta01_bt_resume,
.driver = {
- .name = "neo1973-pm-bt",
+ .name = DRVNAME,
},
};