Jump to content
toleda

_HID Error

Recommended Posts

Get the following warnings:

11048 Warning Not all control paths return a value (_HID)

11048 Warning Reserved method must return a value (Integer/String required for _HID)


Using this patch:

into_all all code_regex (If\s\(TCMF)\s*\)
replace_matched
begin
   If (TCMF) \n
   { \n
       Return (Zero) \n
   } \n
end

 

The result is: How do I get the return in the right place and avoid the extra set of brackets?

       Method (_HID, 0, NotSerialized)
       {
               If (TCMF) 
    { 
        Return (Zero) 
    } 
{}
           Else
           {
               Return (0x0201D824)
           }
       }

 

DSDT:

Original

   Device (_SB.PCI0.LPCB.TPM)
   {
       Method (_HID, 0, NotSerialized)
       {
           If (TCMF) {}
           Else
           {
               Return (0x310CD041)
           }
       }


Fixed

  Device (_SB.PCI0.LPCB.TPM)
   {
       Method (_HID, 0, NotSerialized)
       {
           If (TCMF) {}
           Else
           {
               Return (0x310CD041)
           }
           Return (Zero)
       }

test.aml.zip

Link to comment
Share on other sites

You are talking about 2 different fixes.


First one is mentioned here http://Olarila.com/forum/viewtopic.php?f=19&t=1752#p14711

into_all all code_regex If\s\(TCMF\)\s\{\} replace_matched
begin
If (TCMF)\n
{\n
   Return (Zero)\n
}
end

The second is simpler

into method label _HID parent_label _SB.PCI0.LPCB.TPM insert
begin
Return (Zero)
end

ASUS N53Jq • CPU: Intel Core i7-740QM 1.73GHz • RAM: 6,0GB • HD: 500GB • GPU: GeForce GT 425M 1GB 1920x1080 • OS: OS X 10.8.4 • Linux Mint 15 • Windows 8

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.





×
  • Create New...
The popup will be closed in 15 seconds...