Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
bb95a0d7
Commit
bb95a0d7
authored
Oct 11, 2012
by
James Morris
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'tpmdd-fixes-v3.6' of
git://github.com/shpedoikal/linux
into for-linus
parents
12250d84
1631cfb7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
11 deletions
+19
-11
drivers/char/tpm/tpm.c
drivers/char/tpm/tpm.c
+2
-1
drivers/char/tpm/tpm.h
drivers/char/tpm/tpm.h
+7
-2
drivers/char/tpm/tpm_ppi.c
drivers/char/tpm/tpm_ppi.c
+10
-8
No files found.
drivers/char/tpm/tpm.c
View file @
bb95a0d7
...
@@ -1259,6 +1259,7 @@ void tpm_remove_hardware(struct device *dev)
...
@@ -1259,6 +1259,7 @@ void tpm_remove_hardware(struct device *dev)
misc_deregister
(
&
chip
->
vendor
.
miscdev
);
misc_deregister
(
&
chip
->
vendor
.
miscdev
);
sysfs_remove_group
(
&
dev
->
kobj
,
chip
->
vendor
.
attr_group
);
sysfs_remove_group
(
&
dev
->
kobj
,
chip
->
vendor
.
attr_group
);
tpm_remove_ppi
(
&
dev
->
kobj
);
tpm_bios_log_teardown
(
chip
->
bios_dir
);
tpm_bios_log_teardown
(
chip
->
bios_dir
);
/* write it this way to be explicit (chip->dev == dev) */
/* write it this way to be explicit (chip->dev == dev) */
...
@@ -1476,7 +1477,7 @@ struct tpm_chip *tpm_register_hardware(struct device *dev,
...
@@ -1476,7 +1477,7 @@ struct tpm_chip *tpm_register_hardware(struct device *dev,
goto
put_device
;
goto
put_device
;
}
}
if
(
sys
_add_ppi
(
&
dev
->
kobj
))
{
if
(
tpm
_add_ppi
(
&
dev
->
kobj
))
{
misc_deregister
(
&
chip
->
vendor
.
miscdev
);
misc_deregister
(
&
chip
->
vendor
.
miscdev
);
goto
put_device
;
goto
put_device
;
}
}
...
...
drivers/char/tpm/tpm.h
View file @
bb95a0d7
...
@@ -329,10 +329,15 @@ extern int wait_for_tpm_stat(struct tpm_chip *, u8, unsigned long,
...
@@ -329,10 +329,15 @@ extern int wait_for_tpm_stat(struct tpm_chip *, u8, unsigned long,
wait_queue_head_t
*
);
wait_queue_head_t
*
);
#ifdef CONFIG_ACPI
#ifdef CONFIG_ACPI
extern
ssize_t
sys_add_ppi
(
struct
kobject
*
parent
);
extern
int
tpm_add_ppi
(
struct
kobject
*
);
extern
void
tpm_remove_ppi
(
struct
kobject
*
);
#else
#else
static
inline
ssize_t
sys
_add_ppi
(
struct
kobject
*
parent
)
static
inline
int
tpm
_add_ppi
(
struct
kobject
*
parent
)
{
{
return
0
;
return
0
;
}
}
static
inline
void
tpm_remove_ppi
(
struct
kobject
*
parent
)
{
}
#endif
#endif
drivers/char/tpm/tpm_ppi.c
View file @
bb95a0d7
...
@@ -444,18 +444,20 @@ static struct attribute *ppi_attrs[] = {
...
@@ -444,18 +444,20 @@ static struct attribute *ppi_attrs[] = {
&
dev_attr_vs_operations
.
attr
,
NULL
,
&
dev_attr_vs_operations
.
attr
,
NULL
,
};
};
static
struct
attribute_group
ppi_attr_grp
=
{
static
struct
attribute_group
ppi_attr_grp
=
{
.
name
=
"ppi"
,
.
attrs
=
ppi_attrs
.
attrs
=
ppi_attrs
};
};
ssize_t
sys
_add_ppi
(
struct
kobject
*
parent
)
int
tpm
_add_ppi
(
struct
kobject
*
parent
)
{
{
struct
kobject
*
ppi
;
return
sysfs_create_group
(
parent
,
&
ppi_attr_grp
);
ppi
=
kobject_create_and_add
(
"ppi"
,
parent
);
}
if
(
sysfs_create_group
(
ppi
,
&
ppi_attr_grp
))
EXPORT_SYMBOL_GPL
(
tpm_add_ppi
);
return
-
EFAULT
;
else
void
tpm_remove_ppi
(
struct
kobject
*
parent
)
return
0
;
{
sysfs_remove_group
(
parent
,
&
ppi_attr_grp
);
}
}
EXPORT_SYMBOL_GPL
(
sys_add
_ppi
);
EXPORT_SYMBOL_GPL
(
tpm_remove
_ppi
);
MODULE_LICENSE
(
"GPL"
);
MODULE_LICENSE
(
"GPL"
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment