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
Kirill Smelkov
linux
Commits
e175435e
Commit
e175435e
authored
Jan 25, 2013
by
Jeff Garzik
Committed by
Jeff Garzik
Jan 25, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "libata: export host controller number thru /sys"
This reverts commit
1757d902
. Discussion continues upstream.
parent
7e15e9be
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
6 deletions
+1
-6
drivers/ata/libata-core.c
drivers/ata/libata-core.c
+0
-4
drivers/ata/libata-transport.c
drivers/ata/libata-transport.c
+1
-1
include/linux/libata.h
include/linux/libata.h
+0
-1
No files found.
drivers/ata/libata-core.c
View file @
e175435e
...
...
@@ -99,7 +99,6 @@ static void ata_dev_xfermask(struct ata_device *dev);
static
unsigned
long
ata_dev_blacklisted
(
const
struct
ata_device
*
dev
);
atomic_t
ata_print_id
=
ATOMIC_INIT
(
0
);
atomic_t
host_print_id
=
ATOMIC_INIT
(
0
);
struct
ata_force_param
{
const
char
*
name
;
...
...
@@ -6119,9 +6118,6 @@ int ata_host_register(struct ata_host *host, struct scsi_host_template *sht)
for
(
i
=
host
->
n_ports
;
host
->
ports
[
i
];
i
++
)
kfree
(
host
->
ports
[
i
]);
/* track host controller */
host
->
host_id
=
atomic_inc_return
(
&
host_print_id
);
/* give ports names and add SCSI hosts */
for
(
i
=
0
;
i
<
host
->
n_ports
;
i
++
)
host
->
ports
[
i
]
->
print_id
=
atomic_inc_return
(
&
ata_print_id
);
...
...
drivers/ata/libata-transport.c
View file @
e175435e
...
...
@@ -284,7 +284,7 @@ int ata_tport_add(struct device *parent,
dev
->
parent
=
get_device
(
parent
);
dev
->
release
=
ata_tport_release
;
dev_set_name
(
dev
,
"ata%d
.%d"
,
ap
->
host
->
host_id
,
ap
->
print_id
);
dev_set_name
(
dev
,
"ata%d
"
,
ap
->
print_id
);
transport_setup_device
(
dev
);
error
=
device_add
(
dev
);
if
(
error
)
{
...
...
include/linux/libata.h
View file @
e175435e
...
...
@@ -546,7 +546,6 @@ struct ata_host {
void
*
private_data
;
struct
ata_port_operations
*
ops
;
unsigned
long
flags
;
unsigned
int
host_id
;
/* user visible host ID */
struct
mutex
eh_mutex
;
struct
task_struct
*
eh_owner
;
...
...
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